1681-engine / index / TranslatorOptions
Interface: TranslatorOptions ​
Defined in: src/i18n/Translator.ts:9
Properties ​
language? ​
ts
optional language?: string;Defined in: src/i18n/Translator.ts:13
The language to start in (default the source).
onMissing? ​
ts
optional onMissing?: (key, language) => void;Defined in: src/i18n/Translator.ts:15
Told once per key and language of every string with no translation, for tooling or a log.
Parameters ​
| Parameter | Type |
|---|---|
key | string |
language | string |
Returns ​
void
source? ​
ts
optional source?: string;Defined in: src/i18n/Translator.ts:11
The language strings are written in (default 'en'): shown as written, never reported missing.