unity-i18n
Version:
i18n tool for unity game project
19 lines (18 loc) • 865 B
TypeScript
import { GlobalOption } from './LocalizeOption.js';
export declare type TLangs = 'CN' | 'TW' | 'EN' | 'INA' | 'Arabic' | 'Japanese' | 'Korean' | 'Thai' | 'Russian' | 'Spanish' | 'French' | 'German' | 'Italian' | 'Portuguese';
export declare class Translator {
private static readonly HanPattern;
private static output;
private static readonly cacheBook;
static setup(output: string): Promise<void>;
private static readCache;
private static addCache;
private static findInCache;
static translateTo(raw: string, targetLang: TLangs, option: GlobalOption): Promise<string | null>;
private static translateSingleLine;
private static recoverProtecteds;
private static recoverPlaceholders;
private static protectHtmlFormats;
private static protectRichFormats;
private static protectPlaceholders;
}