poe-i18n
Version:
i18n utility for Path of Exile
58 lines (46 loc) • 1.17 kB
text/typescript
export interface Descriptions {
[key: string]: Description;
}
export interface StatLocaleData {
meta: {
include?: string;
};
data: Descriptions;
}
export interface StatLocaleDatas {
[key: string]: StatLocaleData;
}
export interface Description {
stats: string[];
translations: Translation[];
no_description?: boolean;
}
// generated format from stat_descriptions.ne
export interface ParsedDescriptions {
[key: string]: LanguageDescription;
}
export interface LanguageDescription {
stats: StatIdentifier[];
languages: Languages;
}
export type StatIdentifier = string;
export interface Languages {
[key: string]: Translation[];
}
export interface Translation {
matchers: Matcher[];
text: string;
formatters: Formatter[];
}
export type Formatter = NullaryFormatter | UnaryFormatter;
export type NullaryFormatter = string;
export interface UnaryFormatter {
id: string;
arg: ArrayIndex | ReminderIdentifier;
}
export type ArrayIndex = number;
export type ReminderIdentifier = string;
export type Matcher = Range | Value;
export type Range = [Value, Value];
export type Value = AnyValue | number;
export type AnyValue = '#';