Skip to Content

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

Fallback of Text Translation File i18n.properties not called

Hi Experts
,

I have a small SAP Fiori App with an i18n.properties file to store texts for Translation.

Problem is, the Texts are not shown. Reason is, that the Compiler searches for an i18n_DE_de.properties files but not for my i18n.properties file.

I have a similar App where the Compiler first searches also for the i18n_DE_de.properties file, but as he cannot find one, he uses my fallback i18n.properties file.

I also tried to rename my file to i18n_DE_de.properties but also my texts are not shown in this App.

Can anyone tell whats wrong?

Thanks and regards,

Sebastian

Tags:
Former Member
Former Member replied

ya for that in component.js or else in your controller you should add this code,

//Internalisation

        var oI18nModel = new sap.ui.model.resource.ResourceModel({

            bundleUrl: "i18n/i18n.properties"

        });

        sap.ui.getCore().setModel(oI18nModel, "i18n");

        this.setModel(oI18nModel, "i18n");

0 View this answer in context

Helpful Answer

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