discord.place supports multiple languages across both the Next.js client and the Discord bot server. Translations are stored as JSON files and wired up through a small amount of configuration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/discordplace/discord.place/llms.txt
Use this file to discover all available pages before exploring further.
Currently supported locales
- Client
- Server
The client (
English is the default locale.
client/locales/) currently ships with these language files:| Language | Code | File |
|---|---|---|
| English | en | en.json |
| Turkish | tr | tr.json |
| Azerbaijani | az | az.json |
Adding a new language
- Client
- Server
Create the locale JSON file
Add a new JSON file to
client/locales/ named after the language code, e.g. fr.json for French. Use an existing file like en.json as a reference for all the keys that need to be translated.The JSON structure is a nested object where keys are translation identifiers and values are the translated strings:client/locales/fr.json
Register the locale in config.js
Add the new locale to the The
availableLocales array in client/config.js:client/config.js
dateFnsKey must match the locale key used by the date-fns library.Import the locale file in the language store
Open
client/stores/language/index.js and add an import for your new locale file alongside the existing ones:client/stores/language/index.js
Locale file structure
Both the client and server use JSON files with a nested key structure. Top-level keys group related strings by feature area. Client locale example (client/locales/en.json):
server/src/locales/en.json):
"An error occurred: {errorMessage}".

