i18nInit |
Type | command |
Dictionary | library.i18n |
Library | i18n library |
Syntax | i18nInit <pLocaleToLoad>, [<pLocaleByDefault>]
|
Associations | com.livecode.library.i18n |
Summary | Initialize internationalization packages
|
Parameters | Name | Type | Description |
---|
pLocaleToLoad | | The package or packages to initialize, this parameter can come in three forms:
- The path to a folder where the JSON files with the internationalization packages are located.
- The path to a file with the internationalization packages.
- A array with the internationalization package(s).
|
pLocaleByDefault | | The id of the language to load after the language packs finish loading. If this parameter is not specified, the library does not modify the current language. By default the current language id is "en".
|
|
Example | i18nInit "./i18n/en.json"
i18nInit gLocaleArray, "en"
|
Description | Use the i18nInit command to initialize your application's internationalization packages. This command is responsible for loading all the internationalization packages and when they are finished, it establishes unp. It is a simplified way to load many internationalization packages that are in a folder, a file or an array.
|
Tags | internationalization,i18n,translation,languages,locale |