Skip to Content
0

Instantiate i18n files via manifest.json

Feb 13, 2017 at 06:59 AM

127

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

VAIBHAV GB Feb 13, 2017 at 07:29 AM
0

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

Show 1 Share
10 |10000 characters needed characters left 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.

Thanks!

0