Chat Solution Translations

Translations (Agent Gadget)

We can add agent gadget translation(s), there are simple steps described below.

Update or add the new language

  1. Download the translation file from here, rename it with locale symbol in case you want to add a new language. File name should not contain any special character.

  2. Open the file and change the translation as required. 

  3. Place this file in translations/agent-gadget folder. The translations folder must exist in the same folder where docker-compose.yml file is placed.

  4. To use newly added language,  add a new language key:value pair against environment variable APP_SUPPORTED_LANGUAGES in agent-gadget Docker service in agent-gadget-variables.env. 

  5. In the volumes section make sure to have the following line to mount the i18n folder of the docker container on the host machine where translation files are kept. After mounting volume, you'll need to restart the container to take the changes take effect.

    ${PWD}/translations/agent-gadget: /usr/share/nginx/html/assets/i18n

Translations (Customer Gadget)

We can add customer gadget translation(s), there are simple steps described below.

Update or add the new language

  1. Download the translation file from here, rename it with locale symbol in case you want to add a new language. File name should not contain any special character.

  2. Open the file and change the translation as required. 

  3. Place this file in translations/customer-gadget folder. The translations folder must exist in the same folder where docker-compose.yml file is placed.

  4. To use newly added language,  add a new language key:value pair against environment variable LANGUAGES in customer-gadget Docker service in the customer-gadget-variables.env

  5. In the volumes section make sure to have the following line to mount the languages folder of the docker container on the host machine where translation files are kept. After mounting volume, you'll need to restart the container to take the changes take effect.

    ${PWD}/translations/customer-gadget: /usr/src/app/languages

Translations (KB UI)

  1. Download translation files from here.

  2. Open the file and change the translation as required.
  3. Place these files in translations/kb-ui folder. The translations folder must exist in the same folder where docker-compose.yml file is placed.

Add a new language

  1. Copy en.json from kb-ui translations already download and rename it with locale symbol in case you want to add a new language. 
  2. File names should not contain any special character.
  3. Open the file and change translation as per need and save it. Place this file in translations/kb-ui folder.
  4. Open docker-compose.yml file, 
    1. Navigate to ui service

    2. Add volumes section if not present already.

    3. Add the following line and restart the container. (restart not required if the volume definition already exists)

      ${PWD}/translations/kb-ui: /usr/share/nginx/html/assets/i18n

Related docs & files