Resource Bundles Type
Describes the language locales and locations of the locale properties file locations that you use when you globalize your app.
The following table describes the Resource_bundles
block fields in the manifest.json
file.
Table 1: Resource_bundles Block Fields
Field | Required | Type | Description |
---|---|---|---|
locale | Yes | String | Language locale code |
bundles | Yes | String | Path to the globalization resource bundle
properties files. Files are stored the |
The following code is a sample resource_bundles
block from the manifest.json
file:
... "resource_bundles": [ { "locale": "en_US", "bundle": "resources/hello_en_US.properties" }, { "locale": "es", "bundle": "resources/hello_es.properties" }, { "locale": "fr", "bundle": "resources/hello_fr.properties" }, { "locale": "en", "bundle": "resources/hello_en.properties" } ], ...
Text strings for globalization are stored as key/value pairs in Java format properties files. If you configured text strings for globalization, they appear in JSA when the user sets their preferences for the relevant locale.