CORE/CONTENT test5593 и адаптация UI

This commit is contained in:
AidarKC
2026-11-27 00:47:13 +03:00
parent 205b7ad971
commit 873535654e
1271 changed files with 219621 additions and 1900 deletions
@@ -0,0 +1,10 @@
import { readFileSync } from 'node:fs';
const russian = JSON.parse(readFileSync(new URL('../js/i18n/locales/ru.json', import.meta.url), 'utf8'));
export function expandRussian(source) {
return source.replace(/t\('([a-z0-9_.]+)'\)/gu, (call, key) => {
const value = key.split('.').reduce((node, part) => node?.[part], russian);
return typeof value === 'string' ? JSON.stringify(value) : call;
});
}