Skip to Content
0

Language switch

Dec 13, 2016 at 11:32 AM

52

avatar image

I've got a language problem with my SAPUI5 controls. if i execute e.g.

sap.ui.getCore().getConfiguration().setLanguage("de"); 

my i18n files are loaded correctly and all labels are translated to German but my FacetFilter is still in English. The only way to get a german FacetFilter is the url parameter

sap-ui-language=DE 

But i can't use a parameter in my case. Any idea?

If i use

sap.ui.getCore().getConfiguration().setLanguage("en");

in console all labels switches back to English. And if i use

sap.ui.getCore().getConfiguration().setLanguage("de");

then all labels switches to German except the FacetFilter.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Srikanth KV Aug 23, 2017 at 04:37 PM
0

try adding the new property in script tag of index.html

<script id="sap-ui-bootstrap"
     data-sap-ui-language="en"
Share
10 |10000 characters needed characters left characters exceeded
Sharath M G Aug 23, 2017 at 11:48 AM
0

Did you try setFormatLocale?

Regards,

Sharath

Share
10 |10000 characters needed characters left characters exceeded