-
-
Notifications
You must be signed in to change notification settings - Fork 482
/
internals.d.ts
67 lines (51 loc) · 2.07 KB
/
internals.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
declare module '#build/i18n.options.mjs' {
import type { DeepRequired } from 'ts-essentials'
import type { LocaleObject, NuxtI18nOptions, VueI18nConfig } from '@nuxtjs/i18n'
export type { LocaleObject }
type LocaleLoader = {
key: string
// eslint-disable-next-line @typescript-eslint/no-explicit-any
load: () => Promise<any>
cache: boolean
}
export const localeLoaders: Record<string, LocaleLoader[]>
export const vueI18nConfigs: VueI18nConfig[]
export const localeCodes: string[]
export const nuxtI18nOptions: DeepRequired<NuxtI18nOptions<Context>>
export const normalizedLocales: LocaleObject[]
export const isSSG = false
export const parallelPlugin: boolean
export const NUXT_I18N_MODULE_ID = ''
export const DEFAULT_DYNAMIC_PARAMS_KEY: string
export const DEFAULT_COOKIE_KEY: string
export const SWITCH_LOCALE_PATH_LINK_IDENTIFIER: string
}
declare module '#internal/i18n/options.mjs' {
import type { DeepRequired } from 'ts-essentials'
import type { LocaleObject, NuxtI18nOptions, VueI18nConfig } from '@nuxtjs/i18n'
type LocaleLoader = {
key: string
// eslint-disable-next-line @typescript-eslint/no-explicit-any
load: () => Promise<any>
cache: boolean
}
export const localeLoaders: Record<string, LocaleLoader[]>
export const vueI18nConfigs: VueI18nConfig[]
export const localeCodes: string[]
export const nuxtI18nOptions: DeepRequired<NuxtI18nOptions<Context>>
export const normalizedLocales: LocaleObject[]
export const isSSG = false
export const parallelPlugin: boolean
export const NUXT_I18N_MODULE_ID = ''
export const DEFAULT_DYNAMIC_PARAMS_KEY: string
export const DEFAULT_COOKIE_KEY: string
export const SWITCH_LOCALE_PATH_LINK_IDENTIFIER: string
}
declare module '#internal/i18n/locale.detector.mjs' {
import type { LocaleDetector } from '@nuxtjs/i18n/dist/runtime/composables/server'
export const localeDetector: LocaleDetector
}
declare module 'virtual:nuxt-i18n-logger' {
import type { ConsolaInstance } from 'consola'
export function createLogger(label: string): ConsolaInstance
}