t18s plugin can be configured by passing an options object to the plugin in
vite.config.js. This page lists all available options and their default values.
An array of locales to support.
The locale to use when a given message is not available in the current locale. Defaults to
null, which means that no fallback is used.
The directory in which to look for message-files. Defaults to
The path in which to write the generated typescript definitions. Defaults to
src/$t18s.d.ts. Put this somewhere where ambient types are picked up by the compiler.
Whether to log information about the translation process during development. Defaults to
true. T18S is always silent in production.