exportLocaleToFile

Typecommand
Dictionarylibrary.i18n
Libraryi18n library
Syntax
exportLocaleToFile <pLocaleID>, <pFilePath>
Associationscom.livecode.library.i18n
Summary

Exports the array of an i18n package loaded in memory to a file.

Parameters
NameTypeDescription
pLocaleID

The ID of the i18n package to export.

pFilePath

Path to the file where you want to save the i18n package.

Example
on mouseUp
   exportLocaleToFile "en", "/assets/i18n/en.leng"
end mouseUp
Description

Use the exportLocaleToFile command to export an i18n package to a plain text file. This command will convert the array to a JSON string.

Tagsinternationalization,i18n,translation,languages,locale