unity-i18n
Version:
i18n tool for unity game project
30 lines (29 loc) • 1.24 kB
TypeScript
import { TLangs } from "./Translator.js";
import { LocalizeMode } from "./LocalizeOption.js";
export declare const enum EFormatErr {
RichFormatSlashPairErr = "\u5BCC\u6587\u672C#\u914D\u5BF9\u9519\u8BEF",
HtmlFormatErr = "html\u683C\u5F0F\u9519\u8BEF",
RichFormatErr = "\u5BCC\u6587\u672C\u683C\u5F0F\u9519\u8BEF",
EscapeErr = "\u8F6C\u4E49\u7B26\u9519\u8BEF"
}
export declare class Reporter {
private noTranslators;
private concatStrErrors;
private jsonSafeErrors;
private readonly langMap;
addNoLocal(zh: string, langs: TLangs[]): void;
addNoTranslator(file: string): void;
addConcatStrError(err: string): void;
addJsonSafeError(err: string): void;
addMissedFormats(local: string, lang: TLangs, fmt: string): void;
addFormatError(local: string, lang: TLangs, error: EFormatErr): void;
addTermCNError(local: string, lang: TLangs): void;
addTermENError(local: string, lang: TLangs): void;
checkErrors(): Promise<void>;
makeSumary(mode: LocalizeMode, blackMap: {
[cn: string]: true;
}): Promise<void>;
private writeReportFile;
printMultiLines(group: string, arr: string[]): Promise<void>;
private touchReport;
}