Resource localization
Overview
Static resources are the physical files and resources that are rendered in mobile extensions, including the localization files for translating text in the UI.
Each mobile extension can have only one resource bundle file, which contains all the static resources needed for the extension.
The resource’s bundle file is a .zip file comprising a predefined folder: Locales. This folder stores the localization files, for example, en.json, fr.json, etc.
Localization
Localization resources are the localization files in the static resource zip file. The file names are based on LCID strings or Language codes. They are usually paired with a localized expression to display a key into the user’s device’s preferred language setting.
Important
- English is the default language, so it is mandatory that the en.json file is always in the locale folder. The default is used if the app cannot find the language that matches with the user’s device settings.
If an extension supported three langauages; English, French, and Vietnamese, then the folder would look as follows:
To support more languages, add more files to your form base on the languages code.
Important
- The languages that are supported are based on the native app’s (ios/android) support for the language as well. For example, if the app does not support Japanese, even if you add the ja.json localization file and the user changes their device language to Japanese; Japanese will not be used.
Feedback
Was this page helpful?