Translations for SupportMail
en
)de
)fr
)If you want to add another language,
Copy the en.json
file and name it just with the two first letters of the locale.
Example: en-US
=> en.json
and es-ES
=> es.json
The locale system we use is the ISO-639-1 standard.
Normal variables: {variableName}
Example: {username}
will parse into thelukez
.
Command placeholders: {command:commandname}
Example: {command:help}
will parse to a clickable /help
.
Note that you can also write command placeholders with spaces like {command:config tickets}
which parses to /config tickets
.
An Array is a list of items. In JSON, it looks like this:
{
"key": ["item1", "item2", "item3"]
}
Each item in the array is separated by a comma ,
and the last item doesn’t have a comma.
Each item in the arrays in this project must be a string and it represents one line of text.
It’s mostly used whenever a text has too many lines.
What is wanted later | How to write it | Explanaition |
---|---|---|
"some text in qoutes" |
\"some text\" |
Qoutes must be escaped because of JSON. |
A new line | \n |
It’s the common standard. |
A backslash \ |
\\ |
Backslashes must be escaped because of JSON. |
A single asterisk * (NOT for Discord markdown!) |
\\* |
Escaping the asterisk + the \ because of JSON. |
For Discord Markdown, please refer to the following article: Markdown Text 101 (Chat Formatting: Bold, Italic, Underline)
{command:help}
) - if a user clicks on a command placeholder, the localized version will be automatically used{ "key": "value" }
)Use a program like Visual Studio Code to edit JSON files and have syntax highlighting to avoid mistakes.
If you don’t want to download that, you can change the Domain from github.com
to github.dev
in the URL of the file you want to edit. This will open the file in a web editor where you also have syntax highlighting and can commit and push the changes directly.
If you have an issue or a question, please ask in the Discord channel.
(You need the Translator role to have access to this channel which can be requested by sending a DM to @thelukez)
fr
de
it
es