You can have multiple resource files, and they are called namespaces in the i18next library (by default, you have only one namespace called: translation ), which is used by aurelia i18N .
You just need to specify your namespaces when configuring the plugin with the namespaces and defaultNs inside the ns option:
.plugin('aurelia-i18n', (instance) => { // adapt options to your needs (see http://i18next.com/pages/doc_init.html) instance.setup({ resGetPath : 'locale/__lng__/__ns__.json', lng : 'de', attributes : ['t','i18n'], ns: { namespaces: ['nav', 'message'], defaultNs: 'message' }, getAsync : true, sendMissing : false, fallbackLng : 'en', debug : false }); });
See also the i18next documentation documentation and this related github issue: Using the Namespace
source share