AppLocales defines the localization and translation system of the application. It is a dictionary structure where each key represents a unique text or label in the app, and the corresponding values provide translations for different locales. This allows the app to display content in multiple languages based on the user's preference or device settings.
| Field | Type | Default Value | Description |
|---|---|---|---|
| {key} | LocaleKeys | {} | Unique identifier for a text or label in the app. |
| {locale} | String | {value} | Translation of the key in a specific locale (language code). |
Coding:
{
"AppLocales": {
"{key}": {
"{locale}": "{value}"
}
}
}
For example, a label with key "welcome" can have translations like:
{
"AppLocales": {
"welcome": {
"en": "Welcome",
"fa": "خوش آمدید",
"ar": "مرحبا",
"de": "Willkommen",
"es": "Bienvenido"
}
}
}