Localization
The framework concepts for text localization in OpenUI5 are aligned with the general concepts of the Java platform.
- Identifying the Language Code / Locale
For the identification of languages, the framework uses a language code of type string
.
- Resource Bundles
A resource bundle file is a Java properties file (as described in the Javadoc of class java.util.Properties
). It contains key-value pairs where the values are the language-dependent texts and the keys are language-independent and used by the application to identify and access the corresponding values.
- Supported Locales and Fallback Chain
You can configure a list of supported locales and a fallback locale in your app’s manifest to control the loading of resource bundles and avoid ‘404 Not Found’ network responses.
- Use of Localized Texts in Applications
OpenUI5 provides two options to use localized texts in applications: The sap/base/i18n/ResourceBundle
module and data binding.
- Terminologies
By defining terminologies together with additional resource bundles, an application can easily be switched from one scenario or industry to another.