Define nested translation keys by language.
// app/config/locales.js
module.exports = {
en: { home: { title: 'Welcome' } },
no: { home: { title: 'Velkommen' } }
}
// Server option
locales: require('#app/config/locales.js')
Call state.t('home.title') in a handler. You can also load each language from a JSON file with require().
Next: Language selection →