Multilingual

On a site with WPML or Polylang, the chatbot’s own texts can be translated into every language of the site: its name, the welcome text, the placeholder, the consent text, the quick actions and more. Visitors then see them in the language of the page they are on.

You write each text once in the site’s default language. KimaAI hands it to your multilingual plugin, and you translate it there, as you translate your theme’s strings.

Set it up

  1. Install and activate WPML with its String Translation module, or Polylang.
  2. In the KimaAI admin, switch the admin to your site’s default language. The top bar shows the language you edit in, such as English · default language.
  3. Write the chatbot’s texts and save them, for example on Chatbot → Appearance. Each text that can be translated says so under its field: Translated per language in WPML String Translation or Polylang strings translations.
  4. Select that link, or open the multilingual plugin’s string translation screen yourself. KimaAI’s texts are in the domain kimaai in WPML and in the group KimaAI in Polylang.
  5. Translate each text and save it there.
  6. Open a page of your site in another language and open the chat: it shows the translated texts.

How it works

  • These texts can be translated: on Chatbot → Appearance, the Name, Line under the name, Welcome heading, Welcome text, Placeholder, AI notice, Note under the chat, Launcher label and Popover message; on Settings → Privacy and security, the Consent text; in each quick action, the Button label, Message, Prefill text and Command message; in each glossary term, the Approved wording; in each pinned answer, the Verified answer. The plugin’s wpml-config.xml, which WPML and Polylang read, lists the same texts, those of the quick actions, glossary terms and pinned answers included.
  • Every other setting is the same in all languages, such as the colours, the model and the instructions.
  • Translatable texts are edited in the default language. When the admin is in another language, they are read-only, with the note Edit in your default language, translate in your multilingual plugin. A save in another language never overwrites the default-language texts.
  • A text without a translation shows in the default language.
  • A new text, or a changed one, reaches the multilingual plugin the next time WordPress loads after you saved it.
  • The chat knows the page’s language. Each message carries it, so the lookups KimaAI makes while it answers, such as a search of your posts, run in that language too.
  • An export of the settings holds the default-language texts; the translations stay in your multilingual plugin (see Export and import settings).

Troubleshooting

  • The texts do not appear in WPML String Translation or Polylang. Save the texts once in the default language, then reload the string translation screen. Empty texts are not handed over.
  • A field cannot be edited. The admin is in another language. Switch to the default language, or translate the text in your multilingual plugin.
  • Visitors still see the default language. The text has no translation for that language yet, or the page is not assigned to a language in your multilingual plugin.

What are your feelings