Demo mode: changes are disabled.

Skip to content

Languages

Last updated

Deskply ships in 18 languages. Add one, remove one, change the default or change any wording by editing its message files.

What is included

English, Chinese (Simplified), Hindi, Spanish, Arabic, French, Bengali, Portuguese (Brazil), Indonesian, German, Italian, Dutch, Swedish, Norwegian (Bokmål), Turkish, Japanese, Nigerian Pidgin and Russian. Arabic is laid out right to left.

Visitors change language with the switcher in the header. The choice is kept in a cookie, so addresses are the same in every language.

The API speaks the same 18 languages: its messages, validation errors, notifications and emails are translated too.

  • Panels: the web app sends its language with every request (the Accept-Language header), and the API answers in it.
  • Emails to you and your customers: in the language each person last used in the panel.
  • Emails to a business's clients: in the language of the client's browser when they book on the public booking page, otherwise in the business's language.
  • AI replies: in the language set for each agent. Text that people type, such as plan names and services, is shown as typed.

What stays in English

  • The reminder template that WhatsApp and Messenger need outside Meta's 24-hour window. Other reminders are translated.
  • The feature lines of the plans, and the default title and greeting of the website chat.
  • The invoice PDF in Arabic, Bengali, Chinese, Hindi and Japanese.
  • This documentation.

Change wording

Every text of the interface is a value in messages/<code>/<area>.json. The files are grouped by area of the app, such as common, auth and billing. Edit the value and run sudo bash server/restart.sh.

Keep the keys, the {placeholders} and the <tags> as they are: the app fills them in.

In the API

The API's texts are in its lang/ folder:

  • lang/<code>.json holds the messages, notifications and emails. Each key is the English text and each value its translation; keep the :placeholders, such as :name, as they are.
  • lang/<code>/ holds Laravel's own files: validation.php, auth.php, passwords.php and pagination.php.

Edit a value, then run sudo bash server/restart.sh: the queue worker, which sends the emails, reads them only when it starts.

Add a language

  1. Copy the English folder

    Copy messages/en to messages/<code>, for example messages/ko, and translate the values in its files. A key that is missing or empty is shown in English.

  2. Register the language

    Add it to LOCALES in src/i18n/config.ts, with its name and its direction: rtl for Arabic, Hebrew, Persian or Urdu, otherwise ltr.

  3. Add it to the API

    Use the same code. Copy lang/en.json to lang/<code>.json and the lang/en/ folder to lang/<code>/, translate the values, and add the code to supported_locales in config/app.php. Without this step the API answers that language in English.

  4. Build and restart

    Terminal
    sudo bash server/restart.sh

The switcher lists the languages alphabetically by their own names.

Remove a language or change the default

  • Remove: delete its entry from LOCALES in src/i18n/config.ts and rebuild. You can delete its folder in messages/ too. In the API, remove its code from supported_locales in config/app.php.
  • Default: set NEXT_PUBLIC_DEFAULT_LOCALE to the code of the language shown until a visitor picks one, and rebuild.