cancel
Showing results for 
Search instead for 
Did you mean: 

Instantiate i18n files via manifest.json

mmmsaldua
Explorer
0 Kudos

Hi,

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 i18n.properties 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.

Accepted Solutions (0)

Answers (1)

Answers (1)

vaibhav_gb
Explorer
0 Kudos

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.

regards

GB

mmmsaldua
Explorer
0 Kudos

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.

Thanks!