Thank you for helping translate Nephthys!
- Fork this repository and create a new branch (e.g.
translation/es) - Copy
locales/en/translation.jsontolocales/xx/translation.json— replacexxwith the ISO 639-1 language code (e.g.pl,sv,ja) - Translate all string values (right side of the
:) - Validate your file — run this in the project root:
node -e "require('./locales/xx/translation.json'); console.log('OK')" - Register the language in the code — see the list below, otherwise the file is never loaded and the language does not show up in the language menu
- Open a Pull Request with the title
translation: add xx (Language Name)
The translation file alone is not enough. Add the new code in all six places
(each of them currently covers de, en, es, fr, it, nl, pt, tr):
| File | What to change |
|---|---|
utils/i18n.js |
require the file and add it to the translations map — bot messages |
dashboard/server.js |
supportedLngs, preload and the LANGS array (code, flag-icons country code, native label) |
dashboard/middleware/publicPages.js |
LANG_CODES and OG_LOCALES — public URLs, hreflang, sitemap |
dashboard/routes/settings.js |
the allow-list in the language setting |
dashboard/public/cookieconsent.js |
SUPPORTED — cookie banner |
locales/CONTRIBUTING.md |
the table at the bottom of this file |
| What | Example |
|---|---|
| Placeholders | {{user}}, {{count}}, {{guild}} |
| HTML tags | <code>, <strong>, <a href="..."> |
| Platform names | Discord, Twitch, YouTube, Kick, Trovo, Ko-Fi, Patreon, Steam, EVE Online, X (Twitter), Spotify |
| Technical terms | OAuth2, Webhook, API, XP, DJ |
| Bot command names | /reminder, /giveaway, /voice-lock |
| Emoji | 🎉 ✅ ❌ — keep them as-is |
- All descriptive text, labels, button names, hints, error messages
- Section titles and headings
- Placeholder text inside input fields (e.g.
"e.g. Slash Commands")
- Dashboard / UI: formal (
vousin French,Siein German) - Bot responses in chat: informal, friendly (standard in gaming communities)
- Keep the exact same key structure as
en/translation.json - Do not add or remove keys
- Arrays (
[...]) must keep the same number of elements - Escape double quotes inside strings:
\"or use single-quoted alternatives - Valid JSON only — no trailing commas
Quick validation:
node -e "require('./locales/xx/translation.json'); console.log('OK')"| Code | Language | File |
|---|---|---|
de |
Deutsch | locales/de/translation.json |
en |
English | locales/en/translation.json |
es |
Español | locales/es/translation.json |
fr |
Français | locales/fr/translation.json |
it |
Italiano | locales/it/translation.json |
nl |
Nederlands | locales/nl/translation.json |
pt |
Português | locales/pt/translation.json |
tr |
Türkçe | locales/tr/translation.json |
Open an Issue and tag it with translation.