/** * Factory for `setI18nLanguage`: load the locale's messages if missing, switch * the active locale (legacy vs composition mode), keep the axios * `Accept-Language` header + `` in sync. The three apps had this * near-identical; the axios header setter is injected so this module needs no * axios peer dependency. */ import type { I18n } from 'vue-i18n'; import type { LocaleMessagesLoader } from './loaders.js'; export interface SetI18nLanguageConfig { i18n: I18n; loadLocaleMessages: LocaleMessagesLoader; /** e.g. `(l) => { axios.defaults.headers['Accept-Language'] = l; }`. */ setAxiosLanguageHeader?: (locale: string) => void; } export declare function createSetI18nLanguage(config: SetI18nLanguageConfig): (locale: string) => Promise; //# sourceMappingURL=setLanguage.d.ts.map