Documentation

 

Configuration of eagerly loaded modules

The sections part of the configuration typically contains the list of the file names without extension of the translation files in case of egaerly loaded modules:

const ngtConfig: TranslationConfig = {
  ...
  sections: { 'app', 'components', 'shared' },
  ...
}

The longer section definition can be used when needed:

const ngtConfig: TranslationConfig = {
  ...
  sections: {
    'app', 'shared',
    {
      name: 'ui-components',
      alias: 'ui',
      path: '/components/i18n/{ language }/{ section }.json'
    } 
  },
  ...
}