Widget Localization - Customer Defined Strings

Hi,

In order to customize some fields used in genesys webchat v2, there are some JSON files i18n given with all the labels.

What is the best practice for changing the labels (e.g. ChatTitle) ? Would it be more secure to modify the labels directly inside the JSON files or I need to overwrite the labels once I set the i18n in the main configuration ?

would it be an impact if a newer version comes out in the future if I change directly in JSON files ? Do I need to modify again all the labels ?

Thank you for your help

Regards,

Hello,

It depends on the language you are using and for which you want to change the labels.

At this time:

For English language:
English is the default language (built/compiled with the Widgets libraries).
If you want to customize/change the labels for english, you can do this inline - in the widgets App/main configuration, via the i18n option. You just need to "override" the labels you want to change.
Something like this:

window._genesys.widgets.main.i18n = {
  "en": {
    "webchat": {
      "ChatStarted": "Chat Started",
      "ChatEnded": "Chat Ended",
      ...
    }
  }
};

For non-English languages (italian, french, spanish, ...):
This would require to modify our translated i18n files - making a copy of the json file, modifying the labels you want to change inside that copy, and then host them on your web servers.
You will then set the Widgets App/main i18n option to the url/path to the modified json file.

window._genesys.widgets.main.i18n = "http://HOST:PORT/path/to/languages/customized_file.json";

Regards,

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