16 lines
700 B
TypeScript
16 lines
700 B
TypeScript
import type { TutorialMount } from "@boardgamers/protocol/tutorial";
|
|
export interface Localization {
|
|
readonly locale: string;
|
|
translate(text: string): string;
|
|
setLocale(locale: unknown): void;
|
|
setState(state: unknown): void;
|
|
setNames(names: unknown[]): void;
|
|
refresh(): void;
|
|
destroy(): void;
|
|
}
|
|
export const catalogs: Record<string, Record<string, string>>;
|
|
export const languages: Record<string, string>;
|
|
export function resolveLocale(value: unknown): string;
|
|
export function translateText(text: string, locale?: string): string;
|
|
export function mountLocalization(target: Element, locale?: unknown): Localization;
|
|
export function localizeTutorial(mount: TutorialMount): TutorialMount;
|