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-Languageheader), 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>.jsonholds 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.phpandpagination.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
Copy the English folder
Copy
messages/entomessages/<code>, for examplemessages/ko, and translate the values in its files. A key that is missing or empty is shown in English.Register the language
Add it to
LOCALESinsrc/i18n/config.ts, with its name and its direction:rtlfor Arabic, Hebrew, Persian or Urdu, otherwiseltr.Add it to the API
Use the same code. Copy
lang/en.jsontolang/<code>.jsonand thelang/en/folder tolang/<code>/, translate the values, and add the code tosupported_localesinconfig/app.php. Without this step the API answers that language in English.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
LOCALESinsrc/i18n/config.tsand rebuild. You can delete its folder inmessages/too. In the API, remove its code fromsupported_localesinconfig/app.php. - Default: set
NEXT_PUBLIC_DEFAULT_LOCALEto the code of the language shown until a visitor picks one, and rebuild.