Skip to content

Internationalization

Stellar Explorer supports 9 languages using next-intl.

CodeLanguage
enEnglish
esSpanish
ptPortuguese
frFrench
deGerman
zhChinese
jaJapanese
koKorean
itItalian

Translation files are in messages/*.json. Each file contains the same keys with translated values.

messages/
en.json
es.json
pt.json
...

When adding UI text, you must update all 9 translation files. CI validates that all files have identical key counts.

  1. Add the key to messages/en.json
  2. Add the same key with translated values to all other files
  3. Use the key in your component:
import { useTranslations } from "next-intl";
function MyComponent() {
const t = useTranslations("section");
return <p>{t("myKey")}</p>;
}