cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 accessing wrong i18n file after enhancement

0 Kudos
227

I'm enhancing the main i18n file in my application like this:

var i18n = this.getCallbackAPI().getView().getModel('i18n');
i18n.enhance({bundleUrl:"/sap/bc/ui5_ui5/sap/workspace/webapp/app/i18n/i18n.properties"});

I have two different .properties files in my bundleUrl:

1. i18n_de.properties

2. i18n_en.properties

For some reason, the application only accesses the english file, even if the language is explicitly set to German in the URL.

I feel like I'm missing some part that enables the dynamic usage of the correct file.

(In the main application, there are two .properties files as well and the application always uses the correct language.)

What am I missing?

Accepted Solutions (0)

Answers (0)