Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Async oj.Translations.setBundle

Nathan ZentnerOct 26 2021

I'm wondering what would be the best way to asynchronously load a translation bundle.

I can call "setBundle" on oj.Translations object, but want to make sure that my call to server to get list is complete before I make calls to "getTranslatedString", like I am within appController for menu titles.

How does the functionality decide and also get the locale specific replacements. I'm assuming that if I go down the "setBundle" route, that I would have to load the primary and then the locale specific for any replacements based the the browser locale.

I'm assuming that the locale specific files are just an overloaded file and it would always use the primary translations with the locale specific replacements.

This post has been answered by Mstarets-Oracle on Nov 1 2021
Jump to Answer

Comments

User_W7H6O

Even I am facing the same issue, @user-rh2oc did you manage to fix it

user-xr1d8

hi, in my case we had to hit a site like this, with 'suitetalk' in the site:

eg. our site is

https://11111111.app.netsuite.com/app/

api endpoint is

https://11111111.suitetalk.api.netsuite.com/services/rest/record/v1/

1 - 2

Post Details

Added on Oct 26 2021
5 comments
254 views