diff --git a/plugin-designs/gospel-internet/scripts/check-gospel-internet-render.mjs b/plugin-designs/gospel-internet/scripts/check-gospel-internet-render.mjs index 4dbe283fd..ef298845a 100644 --- a/plugin-designs/gospel-internet/scripts/check-gospel-internet-render.mjs +++ b/plugin-designs/gospel-internet/scripts/check-gospel-internet-render.mjs @@ -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()