কী সাহায্য চাই?

বিষয়টি সংক্ষেপে জানান — আমরা ইমেলে আপনার সঙ্গে যোগাযোগ করব।

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
শুরুর পাতায় যান

Texts and languages

Which language the widget speaks, how it picks the language and how you replace any of its roughly 200 texts – in your account or in code.

The widget speaks German, English and Polish. Each of its roughly 200 texts can be replaced: in your account for all pages, or in code for individual pages.

How the widget picks the language

The widget sits inside your page. What the visitor is reading right now therefore counts for more than their browser setting. The order:

  1. A language your page has chosen for this visitor via ReactiveChat('setLocale', …) (see below).
  2. A fixed language on the snippet (data-rc-locale) or in the configuration.
  3. Otherwise the language of your page from <html lang="…">.
  4. Otherwise the default language from your account.
  5. Otherwise the browser's language, and finally English.

Regional codes are shortened: de-AT becomes de. A language the widget does not know becomes English.

So the most important thing is a correct <html lang> on your pages. Then the widget follows every language version of your website by itself.

The default language in your account

Under /app/projects/{id} in the Installation tab, section Basics, you choose the Default language: de, en or pl. It has two jobs:

Setting the language in code

Fixed for one page, on the snippet:

<script src="https://cdn.reactive.chat/loader.js"
        data-rc-site-key="SITE_KEY"
        data-rc-locale="pl"
        async></script>

At runtime, for example from your own language switcher:

ReactiveChat('setLocale', 'en');

setLocale relabels the widget immediately. The widget remembers the choice for a year in the visitor's browser, and it then takes precedence over data-rc-locale on other pages too. There is no language picker in the widget itself. If your visitors should choose, call setLocale from your switcher.

Own wording in your account

In the Texts & forms tab, section Own wording, every text of the widget is listed with its key, grouped by area and collapsed. Our text is shown in grey in the field. Whatever you enter replaces it. The heading shows how many texts of your own you already have.

Important about the language: you type the texts in the project's default language, and that is where they take effect. Visitors whose widget runs in a different language still see our supplied texts there. For texts of your own in further languages, use code (below), ideally on the pages of the respective language version.

Changes reach your visitors within a minute.

The most important keys

An excerpt, by area:

You can see the complete list in your account.

The note “Powered by reactive.chat” (see Chat window) and the texts of product tours (see Product tours) cannot be changed via texts.

Replacing texts in code

On the snippet with data-rc-strings as JSON, keys in dot notation:

<script src="https://cdn.reactive.chat/loader.js"
        data-rc-site-key="SITE_KEY"
        data-rc-locale="en"
        data-rc-strings='{"input.placeholder":"Your question about your order …","header.title":"Customer service"}'
        async></script>

Or in the configuration:

ReactiveChat('boot', {
  strings: { 'input.placeholder': 'Your question about your order …' }
});

A second boot call on the same page loads new strings. That way you can change texts after sign-in, for example.

Texts set in code apply the same in every language. So set them on pages whose language is fixed, and set the language there as well.

Order of precedence, from strongest to weakest:

  1. Texts in code (strings) – they only apply to the page they are on.
  2. Own wording from your account, in the default language.
  3. Our supplied texts in the visitor's language.
  4. English.

Code wins on purpose: if you want to label a single page differently, you do it there, without changing the setting for all other pages.

Other texts elsewhere

Some texts have a field of their own, often per language:

সর্বশেষ হালনাগাদ: