Internationalization
Stellar Explorer supports 9 languages using next-intl.
Supported Locales
Section titled “Supported Locales”| Code | Language |
|---|---|
en | English |
es | Spanish |
pt | Portuguese |
fr | French |
de | German |
zh | Chinese |
ja | Japanese |
ko | Korean |
it | Italian |
Translation Files
Section titled “Translation Files”Translation files are in messages/*.json. Each file contains the same keys with translated values.
messages/ en.json es.json pt.json ...Adding New Text
Section titled “Adding New Text”When adding UI text, you must update all 9 translation files. CI validates that all files have identical key counts.
- Add the key to
messages/en.json - Add the same key with translated values to all other files
- Use the key in your component:
import { useTranslations } from "next-intl";
function MyComponent() { const t = useTranslations("section"); return <p>{t("myKey")}</p>;}