You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The I18n module provides a helper called `I18n.t` that you can use to localize
4
-
your application.
3
+
The I18n module provides a helper called `i18n.t` that you can use to localize your application.
5
4
6
5
### Setup
7
6
8
-
Put a `defaultLocale` property into your `manifest.json` file.
7
+
Put a `defaultLocale` property into your `manifest.json` file, otherwise it will use english (en)
9
8
10
-
Add your translation files as `src/translations/XX.json` where `XX` is a locale such
11
-
as `en-US`, `de`, or `zh`.
9
+
Add your translation files as `src/translations/XX.json` where `XX` is a locale such as `en-US`, `de`, or `zh`.
12
10
13
11
A simple translation file might look like this:
14
12
@@ -22,40 +20,39 @@ A simple translation file might look like this:
22
20
}
23
21
```
24
22
23
+
The "app" section in translation files is used *only* for public app listings in the Zendesk Marketplace. For these listings, we only allow English. The "app" sections in other translation files will be ignored.
24
+
25
25
### Initialization
26
26
27
-
When you know which locale you want to use, call `I18n.loadTranslations(locale)` where
28
-
`locale` is a string like `en-US`, `de`, `zh`. This will load the strings under the
29
-
matching file in `src/translations`. For example, you could use
27
+
When you know which locale you want to use, call `i18n.loadTranslations(locale)` where `locale` is a string like `en-US`, `de`, `zh`. This will load the strings under the matching file in `src/translations`. For example, you could use
0 commit comments