Skip to Content

Language switch

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 23, 2017 at 04:37 PM

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

    <script id="sap-ui-bootstrap"
         data-sap-ui-language="en"
    
    Add comment
    10|10000 characters needed characters exceeded

  • Aug 23, 2017 at 11:48 AM

    Did you try setFormatLocale?

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded