Translate all built-in command names, descriptions & options to the user's language settings in the Discord app.
We'll appreciate if you contribute with any language.
New language translations must be added at the translations.json file.
The following table lists the locales allowed for translations. 📌 Only these locales can be used!
Identifier Language Name Native Name da Danish Dansk de German Deutsch en-GB English, UK English, UK en-US English, US English, US es-ES Spanish Español es-419 Spanish, LATAM Español, LATAM fi Finnish Suomi fr French Français hr Croatian Hrvatski hu Hungarian Magyar id Indonesian Bahasa Indonesia it Italian Italiano lt Lithuanian Lietuviškai nl Dutch Nederlands no Norwegian Norsk pl Polish Polski pt-BR Portuguese, Brazilian Português do Brasil ro Romanian, Romania Română sv-SE Swedish Svenska vi Vietnamese Tiếng Việt tr Turkish Türkçe cs Czech Čeština el Greek Ελληνικά bg Bulgarian български ru Russian Pусский uk Ukrainian Українська hi Hindi हिन्दी th Thai ไทย zh-CN Chinese, China 中文 ja Japanese 日本語 zh-TW Chinese, Taiwan 繁體中文 ko Korean 한국어
Each command or option in the configuration file must include
nameTranslationsanddescriptionTranslationsfor all supported locales. Below is an example of a command structure:{ "name": "add", "type": "command", "nameTranslations": { "en-GB": "add", "es-ES": "añadir" }, "descriptionTranslations": { "en-GB": "Add a user to a ticket.", "es-ES": "Añade un usuario al tiquet." }, "options": [ { "name": "user", "type": "string", "nameTranslations": { "en-GB": "user", "es-ES": "usuario" }, "descriptionTranslations": { "en-GB": "The user to add to the ticket.", "es-ES": "El usuario a añadir al tiquet." } } ] }Each command or option contains fields like:
name: Do not modify. The identifier of the command or option.type: Do not modify. The type of the command or option (e.g.,command,subcommand,string,number,boolean, ...).nameTranslations:
- Sets the command or option name to its translation for each locale.
- Example:
"en-GB": "add"for English.descriptionTranslations:
- Sets the command or option description to its translation for each locale.
- Example:
"en-GB": "Add a user to a ticket."for English.
If you want to add translations for a new locale, follow these steps:
- Check that the locale is in the Supported Locales table above.
- Add the new locale ID and the translation on all the
nameTranslationsanddescriptionTranslationsfields.- Ensure all nested options include translations for the new locale.
Do NOT modify any other fields like
nameortype.Suppose you want to add French (
fr-FR):Before:
"nameTranslations": { "en-US": "add" }, "descriptionTranslations": { "en-US": "Add a user to a ticket." }After:
"nameTranslations": { "en-US": "add", "fr": "ajouter" }, "descriptionTranslations": { "en-US": "Add a user to a ticket.", "fr": "Ajouter un utilisateur à un ticket." }
Before saving the configuration file:
- Verify that all supported locales are present in
nameTranslationsanddescriptionTranslations.- Ensure there are no typos in the locale keys and they match exactly with the IDs in the Supported Locales table above.
By following this guide, you can easily add translations to your configuration file while maintaining compatibility with the plugin.