Skip to Content

Instantiate i18n files via manifest.json


I'm working on an SAPUI5 application using SAP WEB IDE. And have deployed the said application in our backend server. Unfortunately, it does not read my in my i18n folder so all my label text are blank.

I have set my resourceroots as follow.

I am referencing the i18n correctly? Here is how I call it via manifest.json

It's working properly if I instantiate in my controller.js but I want to do it in my manifest.json.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 13, 2017 at 07:29 AM

    Hello Melanie,

    In your definition of models, you have defined it correctly. I notice you have named your model as "i18n1" are you sure you are calling the correct model in your view, you need to refer to your model as "{i18n1>key}" . if you are referring to the correct model in your view and still facing the issue, can you share the project structure that you are using.



    Add comment
    10|10000 characters needed characters exceeded

    • Hi Vaibhav,

      Yes I am referring to my model as {i18n1>headerTitle}. Here is our project structure

      Also would like to add, that when I deployed the app to our server it cannot find the resources folder. So I had to edit the bootstrap script as above.

      The original bootstrap script was below and it is working in SAP WEB IDE but not in our server. The above does not work in SAP WEB IDE but only works in our server.