@grandlinex/bundle-multilang
Version:
> Multilang support for GrandLineX
14 lines (13 loc) • 399 B
TypeScript
import { CoreLogChannel } from '@grandlinex/core';
import { LangData } from '../lib/index.js';
export default class GLang {
code: string;
map: Map<string, string>;
missing: Set<string>;
log?: CoreLogChannel;
constructor(langDat: LangData | null, log?: CoreLogChannel);
clear(): void;
loadLang(lang: LangData): void;
get(key: string): string;
private translate;
}