Sizes in the interface's language: units and the decimal sign («2,2 ГБ, предел 2,0 ГБ»)

platform::size_text takes the units from the translations ({n} GB …) and
the decimal comma where the language writes one; every size the web version
shows goes through it. chessbase.mjs takes CP_LANG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-30 21:15:11 +03:00
parent bc104c55b4
commit b5da315343
3 changed files with 20 additions and 10 deletions

View file

@ -28,7 +28,7 @@ const read = (name) => s.logs.filter((l) => l.includes(`database read: ${name}`)
const cbh = readdirSync(baseDir).find((n) => n.toLowerCase().endsWith('.cbh'));
const stem = cbh.slice(0, -4);
try {
await t.navigate(`${s.base}?lang=en`);
await t.navigate(`${s.base}?lang=${process.env.CP_LANG || "en"}`);
await started();
await sleep(2500);
@ -64,7 +64,7 @@ try {
}
// The next visit: Chrome reads the remembered folder's database again by itself.
await t.navigate(`${s.base}?lang=en`);
await t.navigate(`${s.base}?lang=${process.env.CP_LANG || "en"}`);
await started();
await sleep(3000);
await shot('cb-5-reloaded.png');