Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAPUI5 default language

Hi Everone!

I have a problem with setting a default language for my sapui5 app. I've found the information that in order to set a language during initialization the data-sap-ui-language="en" parameter has to be added (SAP HANA Developer Guide - SAP Library).

The thing is that when I test the app localy (using proxy and Tomcat) it works fine, language is always set to English, but .. when I submit the app's code to SAP repository and run it as the BSP application it doesn't see this parameter (I've checked inside sap-ui-core.js and there is a method which returns a default value for language parameter, which is my web broser language - it uses windows.navigator.language property).

However, when I use the url parameter (sap-language=EN) it works fine, but the value is easy to be changed by end users, so I'd like to set it inside the code.

I would be very grateful for any help you can provide!

Tomasz Sobkowiak


Helpful Answer

Not what you were looking for? View more on this topic or Ask a question