import { loadI18n } from '../test-support/i18n.js'; import assert from 'node:assert/strict'; import fs from 'node:fs/promises'; import path from 'node:path'; import test from 'node:test'; const root = path.resolve(import.meta.dirname, '..'); test('translations support placeholders, plurals and German fallback without treating text as HTML', async () => { const context = {}; const i18n = await loadI18n(context); assert.equal(i18n.t('app.strecke.wahlen'), 'Strecke wählen'); assert.equal(i18n.t('media.image.count', { count: 1 }), '1 Bild'); assert.equal(i18n.t('media.image.count', { count: 2 }), '2 Bilder'); assert.equal(i18n.t('app.nachste.station', { value1: '