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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 23, 2017 at 11:48 AM

    Did you try setFormatLocale?

    Regards,

    Sharath

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.