Context: Use the single locale registry in src/site.config.ts to drive routing, labels, fallback behavior, messages, hero copy, and About content.
→
Anglefeint Starter Guide 2: Configure Languages and Routing
How locales, fallback, and default-locale URLs work
Output
Anglefeint uses a single locale registry in src/site.config.ts.
That means routing, locale labels, fallback behavior, localized UI copy, localized home hero text, and localized About content all come from one place.
The core i18n shape
i18n: {
defaultLocale: 'en',
routing: {
defaultLocalePrefix: 'always',
},
locales: {
en: {
meta: {
label: 'English',
hreflang: 'en',
ogLocale: 'en_US',
},
site: {
hero: 'Your localized home hero copy.',
},
messages: {
nav: { home: 'Home' },
},
about: {
metaLine: '$ profile booted | mode: builder',
},
},
},
}
Choose the default locale and URL mode
i18n.defaultLocalei18n.routing.defaultLocalePrefix
If defaultLocalePrefix is 'always':
- the default locale home is
/<default-locale>/ /redirects there
If defaultLocalePrefix is 'never':
/becomes the canonical home for the default locale/<default-locale>/redirects back to/
Locale metadata that is live today
labelhreflangogLocaleenabledfallback
enabled affects route generation and the language switcher. fallback affects localized messages, hero copy, and About content resolution.
The localized fields most users will edit
i18n.locales.<code>.messagesi18n.locales.<code>.site.heroi18n.locales.<code>.about
Content files still matter
Localized posts still live in:
src/content/blog/<locale>/
If a blog detail page does not exist in the target locale, the language switcher falls back to that locale’s blog index.
Read next
131 words · 170 tokens