Translating the console
The console’s text is ready for translation: every label, hint, button and message goes through one catalogue, and dates, times, numbers and amounts are written the way the viewer’s locale writes them. No translation ships yet; this page says how one is made and tried.
The catalogue
Section titled “The catalogue”frontend/src/locales/en.json holds every message the console shows, the English text as both the key and the value, in ICU message syntax where a message has placeholders or plurals:
{ "Simulated hosts": "Simulated hosts", "Deleted {name}": "Deleted {name}", "{count, plural, one {# host} other {# hosts}}": "{count, plural, one {# host} other {# hosts}}"}A translation is the same file with the values translated, named after its locale: fr.json, de-CH.json. Placeholders keep their names; plural forms follow the locale’s own categories (a language with few and many adds them). The catalogue is generated from the code and checked in, so a reviewer sees every new or changed string as a line in one file, and a test fails when the code and the catalogue disagree.
Field names of ISO 8583, code values and the protocol’s own words (MTI, STAN, PAN) stay as they are, as testers search for them. The messages the api returns are shown as they come; their translation is a later step on the services.
Trying a locale
Section titled “Trying a locale”Add ?locale=<code> to any console address to use that locale for the browser session: ?locale=fr once a French catalogue is registered, or ?locale=pseudo for the pseudo locale, which renders every message with accented letters and about a third more length, so a page that clips or overflows shows it before any translation exists. Without the query string the console uses the browser’s locale for dates and numbers and the English catalogue for text.
What the viewer’s locale changes today
Section titled “What the viewer’s locale changes today”Dates and times (a run’s start, a certificate’s expiry), relative times (“3 minutes ago”), numbers with thousands separators, and amounts with a currency code follow the locale through the browser’s own formatting. Nothing else changes until a catalogue for the locale is registered.