@lynx-js/web-core
Version:
This is an internal experimental package, do not use
10 lines (9 loc) • 590 B
TypeScript
import type { I18nResourceTranslationOptions, InitI18nResources } from '../../types/index.js';
import type { BackgroundThread } from './Background.js';
export declare const getCacheI18nResourcesKey: (options: I18nResourceTranslationOptions) => string;
export declare class I18nManager {
#private;
constructor(background: BackgroundThread, rootDom: ShadowRoot, i18nResources?: InitI18nResources);
updateData(data: InitI18nResources, options: I18nResourceTranslationOptions): void;
_I18nResourceTranslation: (options: I18nResourceTranslationOptions) => unknown | undefined;
}