- 📁 Create a new file in the
locales
directory with the name of the language in the formatlanguage_code.json
. For example,EnglishUS.json
for English,SpanishES.json
for Spanish, etc. - 📋 Copy the contents of the
EnglishUS.json
file into the new file. - 🌐 Translate the strings in the new file to the desired language.
EnglishUS:
{
"cmd": {
"ping": {
"description": "Shows the bot's ping.",
"content": "Pinging...",
"bot_latency": "Bot Latency",
"api_latency": "API Latency",
"requested_by": "Requested by {author}"
}
}
}
Hindi:
{
"cmd": {
"ping": {
"description": "बॉट का पिंग दिखाता है।",
"content": "पिंगिंग...",
"bot_latency": "पिंगिंग...",
"api_latency": "एपीआई लेटेंसी",
"requested_by": "{author} द्वारा अनुरोधित"
}
}
}
To ensure {}
are not removed during translations, use the format tags: ["{", "}"]
.