https://all.docs.genesys.com/WID/Current/Developer/GWCInternat

https://all.docs.genesys.com/WID/Current/Developer/GWCInternat.
Hi Team,
I am trying to change the language for the language in the Genesys chat Application
with the following code snippet which was given in this link https://all.docs.genesys.com/WID/Current/Developer/GWCInternat

Code Snippet :

window._genesys.widgets = {

 main: {

     lang: "fr",
     i18n: "/relative/path/to/i18n/widgets-fr.i18n.json"

     // OR using the CDN URL
     i18n: "https://apps.mypurecloud.com/widgets/<version>/i18n/widgets-fr.i18n.json"
 }

};

when I implement these changes in the code the changes are not getting reflected. Can you please help in resolving this issue .

Hello,

Setting i18n attribute twice is incorrect.
And the CDN URL (your 2nd i18n attribute) is wrong. You must specify a version, and not leave <version> in the url path.

A comment regarding widgets languages.
For english, the language file is included in the widgets library, so you just need to set lang to 'en'.
This is if you use the predefined/built-in translations.
For other languages than english, you have to set the lang attribute and you can set the i18n to a url (Global CDN hosted by Genesys) where we store the corresponding labels/translations. You can also configure a different url (or relative path) if you want to store the language file somewhere else.
You can see the list of supported languages here

Regarding your question, you can find an example of widgets configuration with lang and i18n for spanish in this post, and one for lang and i18n for french in this post.

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.