Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 532 Bytes

LOCALE.md

File metadata and controls

17 lines (10 loc) · 532 Bytes

Localization

Locale files are located inside frontend/locales directory.

Force specified locale

App auto-detects your locale from browser. You can override it in frontend/src/routes/+layout.ts, for example:

init({ initialLocale: 'ru' ?? undefined, fallbackLocale: 'ru' });

How to add a new locale

Locale files stored in frontend/locales. Use the existing as an example. For example add de.json for German language.

Update frontend/src/routes/+layout.ts if you'd like to override defaults.