lazy

  • type: boolean or LazyOptions
  • default: false

See also Lazy-load translations.

Whether the translations should be lazy-loaded. If this is enabled, you MUST configure the langDir option, and locales must be an array of objects, each containing a file key.

Loading locale messages lazily means that only messages for currently used locale (and for the fallback locale, if different from current locale) will be loaded on page loading.

skipNuxtState

šŸš§ This feature is not implemented yet.

The value can also be set to an object instead of the value true to override configuration options related to lazy loading. Supports the following optional properties:

  • type: boolean
  • default: true

Whether the translation messages for the current locale should be injected into Nuxt state and re-used on the client-side. Read more.

langDir

  • type: string or null
  • default: null

Directory that contains translation files to load. Can be used with or without lazy-loading (the lazy option). Use Webpack paths like ~/locales/ (with trailing slash).