Misc
Miscellaneous options.
experimental
- type:
object
- default:
{ jsTsFormatResource: false }
Configure the flag for experimental features of the nuxt i18n module.
This property can also be set using
runtimeConfig
.Supported properties:
jsTsFormatResource
(default:false
) - Allow the formatjs
andts
for locale messages in lazy load translation.
customBlocks
- type:
object
- default:
{ defaultSFCLang: 'json', globalSFCScope: false }
Configure the i18n
custom blocks of SFC.
Supported properties:
defaultSFCLang
(default:'json'
) - Specify the content for all your inlined i18n custom blocks on your SFC. about details, see hereglobalSFCScope
(default:false
) - Whether to include alli18n
custom blocks on your SFC on global scope. about details, see here
types
- type:
string
(composition
orlegacy
) - default:
composition
Enforces the type definition of the API style to be used. if you set compostion
, Composition API types provided by Vue I18n and @nuxtjs/i18n
are supported, else legacy
, Options API types are supported. If you are running a dev server with nuxi dev
, watching the Nuxt configuration will switch the type.
If it can not detect Nuxt configuration changing, you need to run
nuxi prepare
.debug
- type:
boolean
- default:
false
Whether to use @nuxtjs/i18n
debug mode. If true
, logs will be output to the console.
The purpose of this option is to help identify any problems with @nuxtjs/i18n.Don't enable this option for use in production. Performance will be decreased.
parallelPlugin
- type:
boolean
- default:
false
Set the plugin as parallel
. See nuxt plugin loading strategy.
Table of Contents