Skip to Content
0

Localization in Multi-language UI5 application

Oct 03, 2017 at 08:33 AM

52

avatar image
Former Member

Hi everybody,

We are experiencing some issues with the localization (i18n) feature in our UI5 app.

We are supporting multiple languages within our application (e.g. englisch, German, etc. ) which in itself works perfectly. But the framework seems kind of confused which language file to load by default and on startup.

When the application launches, the framework tries to load an i18n.properties file at first, which is not available. After that it tries to load several other files which it does not find as well. (e.g. i18n_US.properties...) But the localization is working fine. So we are stuck with about 6-8 „404“ errors before our app launches, which increases the time our application needs to startup.

Our i18n files are called, for example for englisch: i18n_en.properties.

Does anybody have an idea on how to resolve this for us?

Best regards

Christoph

10 |10000 characters needed characters left characters exceeded

As far as I know the framework looks for the language specific i18n files according to the language setting maintained in the browser and if no matching file is found then it loads the fallback i18n.properties file. You could just add an additional i18n.properties file to the i18n folder of your project and store the same text you are storing in your default language specific file (for e.g. if German is your default language then the content of i18n_DE.properties and i18n.properties can be the same, in case of English then the content of i18n_EN_US.properties and i18n.properties can be same so that the framework can find the files it is looking for).

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers