To add a new language to the application, follow these simple steps:
-
Copy the
messages/en.jsonfile and rename it to match your language code (e.g.,fr.jsonfor French). -
Translate all content in the file to your target language while maintaining the same JSON structure and keys.
-
Add your language to the
SUPPORTED_LOCALESarray insrc/lib/const.tsfile:
export const SUPPORTED_LOCALES = [
{
code: "en",
name: "English 🇺🇸",
},
{
code: "ko",
name: "Korean 🇰🇷",
},
{
code: "your-language-code",
name: "Your Language Name 🏴",
},
];The language will then be available in the language selector of the application.