Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

OAC - How to force a locale in embedded DV

Received Response
49
Views
3
Comments
Begoña Villamor
Begoña Villamor Rank 2 - Community Beginner

Hi,

we have some workbooks with localized content in Spanish and English. When used directly from OAC, the content language and interface change depending on the user language and locale properties as expected.

However, when these same workbooks are used through embedding, the content and interface appear always in Spanish.

Can we force the locale using any parameter in the workbook embedding code?

We have tested lang and locale as URL parameters and they work to force the language but only directly in OAC. In the embedded workbook we don't know how to get the same behavior.

Some more details:

  • authentication used : token
  • embedding mode: javascript oracle-dv
  • browsers: Firefox and Chrome
  • OAC current version: May 2025

Mentioning @Mike Durran-Oracle as embedding expert :)

Regards,

Begoña Villamor.

Answers

  • Hi, try this - at the end of the embedding.js file, you can specify language and locale - e.g.

    …/embedding.js?locale=fr&lang=fr

  • Begoña Villamor
    Begoña Villamor Rank 2 - Community Beginner

    Thanks, I'll try it and let you know if it works.

  • Begoña Villamor
    Begoña Villamor Rank 2 - Community Beginner

    Hi, I'm afraid the solution didn't work. The user interface and the captions are still shown in Spanish, not in the user language nor the URL language.

    The next table shows the language used in the OAC interface, the content of the WEBLANGUAGE session variable, the language applied to a date format value and the language of visualization captions that have translations on different situations. Green values mean correct behavior and red means wrong.

    As you can see, the weblanguage variable has always the right value but OAC, when used embedded, ignores it for the interface and the localized labels.

    @Mike Durran-Oracle , can you think in any other way to get the content in the right language?

    Regards,

    Begoña Villamor.