Skip to content

MessagesFile beta ​

Interface of @v12-engine/client

ts
export interface MessagesFile

A 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 ​

ts
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 ​

ts
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 ​

ts
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 ​

ts
name?: string;

What the language is called, in itself, on the settings' Language: Intl.DisplayNames of its id when left out

names ​

ts
names?: Record<string, string>;

What the game's definitions are called, by <kind>.<id>: unit.footman, ability.holyLight, speaker.arthur

sources ​

ts
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