MessagesFile beta
Interface of @v12-engine/client
export interface MessagesFileA language's words, as a file of a game's (he.json): what a key says, what a definition is called, which way it is written. Every field may be left out: what it does not say is said in the game's first language
Members
dir
dir?: 'ltr' | 'rtl';Which way it is written: rtl turns the HUD and the menus over, right to left. Left to right when left out
font
font?: string;Typefaces for the letters of its script that the theme's have not (the client's are Latin, Greek and Cyrillic), as CSS, put before the theme's: a face of the game's own with a unicode-range of its script leaves the rest in the theme's. The system's fonts draw them when left out
messages
messages?: Record<string, string>;What each key says: the game's messages and texts, the engine's and the client's (see messages.en.json of the client), and the HUD's words (hud.idle, hud.orders.move). {param} is a param; count, plural, one # unit other # unitsis a plural;race, select, undead ... other ...one of a few;unit, unit the name of an id (unit, ability, item, upgrade, buff, resource, race, speaker), a list of them joined as the language joins one; {amount, number} a number as the language writes it. race.<race>.<key> is said to a player of that race
name
name?: string;What the language is called, in itself, on the settings' Language: Intl.DisplayNames of its id when left out
names
names?: Record<string, string>;What the game's definitions are called, by <kind>.<id>: unit.footman, ability.holyLight, speaker.arthur
sources
sources?: {
messages?: Record<string, string>;
names?: Record<string, string>;
};What each translation was made from, as the editor's Languages panel keeps it (campaign plan LO2): a hash of the first language's words of a key (messages) or a name (names) as they were when it was translated, so one whose source changed since shows as stale. The game reads nothing of it