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 .
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