We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ccf37a commit 0126defCopy full SHA for 0126def
src/index.ts
@@ -16,14 +16,17 @@ const isServer = typeof window === 'undefined'
16
let sharedInstance: I18n = null
17
18
/**
19
- * The default options, for the plugin.
+ * The default options, for the I18n class
20
*/
21
const DEFAULT_OPTIONS: OptionsInterface = {
22
lang: !isServer && document.documentElement.lang ? document.documentElement.lang.replace('-', '_') : null,
23
fallbackLang: 'en',
24
resolve: (lang: string) => new Promise((resolve) => resolve({ default: {} }))
25
}
26
27
+/**
28
+ * The default options, for the plugin.
29
+ */
30
const DEFAULT_PLUGIN_OPTIONS: PluginOptionsInterface = {
31
shared: true
32
0 commit comments