Skip to Content

SAPUI5: Array of translatable text

Dec 22, 2016 at 09:37 AM


avatar image
Former Member

I have a drop-down menu item on the screen that allows a user to select his/her nationality from a list of countries loaded from a JSON file. It works fine, however, the text will need to be translatable. I could either have a set of different JSON country list files for the country names, each translated into a particular language, or I could have the translated country names list sent as an array from the Gateway.

Before I explore the latter, I was wondering whether it might be possible to use an array inside the resource bundle files, loop over that in some way, and feed that into the drop down menu. This way the country list will for part of the i18n Resource Bundle.

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

1 Answer

Jun Wu Dec 22, 2016 at 01:42 PM

you can put them in json file, then load it.


10 |10000 characters needed characters left characters exceeded