check:gospel-internet renders every panel in zh, ru and hi too

The production bar's cell E names en, ar, zh, ru and hi; the render check
measured two. It now server-renders the board in all five and requires
each panel to render with no error and the board's text to be the
locale's, not English.
This commit is contained in:
Doxa Maps 2026-09-28 00:47:58 +00:00
parent 75ab636b93
commit a44d88730f

View file

@ -115,6 +115,13 @@ try {
const found = arWords.filter((w) => ar.html.includes(w))
ok(found.length === arWords.length, `ar: the catalogue reaches the panels (${found.length}/${arWords.length} Arabic strings found)`)
ok(!ar.html.includes('Language tree: every language family'), 'ar: the English tree label is not left in place')
// cell E's other locales: every panel renders, and the board's own title is the locale's, not English
for (const lc of ['zh', 'ru', 'hi']) {
const out = await render(lc)
const cat = JSON.parse(readFileSync(resolve(REPO, 'library/i18n/locales', lc, 'gospelInternet.json'), 'utf8'))
ok(out.errors.length === 0 && out.html.includes(cat.tree.legendTitle) && !out.html.includes('Language tree: every language family'),
`${lc}: every panel rendered, translated (${out.errors.length} errors)`)
}
} catch (e) {
console.log('NOT MEASURED: ' + (e && e.stack || e).toString().split('\n').slice(0, 3).join(' | '))
await server.close()