Create Spanish
Generate es, then keep the same key hierarchy as en and fr. Do not translate keys themselves.
aml i18n:add es
aml i18n:missing es
aml i18n:check
aml i18n:set-default esTranslate and use it
Translate navigation, validation, empty states, and metadata. Test accents, longer labels, and mobile width.
Run the checks
Run check and missing, change the default temporarily, exercise route/cookie/header detection, then restore the intended default.
SUMMARY
What to remember
- Code stays shared while catalogs carry wording.
- Keys describe meaning rather than sentences.
- Locale resolution accepts only supported values.
- withLocale() isolates each request safely.