feat(i18n): add Russian UI and harden localization

This commit is contained in:
Arthur Koba
2026-10-25 22:35:32 +03:00
parent 65a96670d5
commit b4e94076c9
115 changed files with 7767 additions and 993 deletions
@@ -1,7 +1,7 @@
import { runtimeText } from '@/i18n/runtime';
/**
* 内置源站错误页 HTML 模板目录。
* 每个模板对应本目录下一个独立 `.ts` 模块(export default 完整 HTML 字符串)。
* 每个模板对应本目录下一个独立 `.ts` 模块(export default 返回完整 HTML 的函数)。
* 新增模板:新增 `*.ts` 并在下方数组注册。
*
* 模板须使用占位符 {{status}} / {{host}},禁止写死状态码。
@@ -25,21 +25,27 @@ export const ORIGIN_ERROR_PAGE_TEMPLATES: OriginErrorPageTemplate[] = [
get name() {
return runtimeText('minimal_white_5636e8a9');
},
html: minimalistHtml,
get html() {
return minimalistHtml();
},
},
{
id: 'line-style',
get name() {
return runtimeText('line_topology_22ad450c');
},
html: lineStyleHtml,
get html() {
return lineStyleHtml();
},
},
{
id: 'baohaus',
get name() {
return runtimeText('bauhaus_5cc69781');
},
html: baohausHtml,
get html() {
return baohausHtml();
},
},
];