mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-17 07:14:24 +08:00
feat(i18n): add Russian UI and harden localization
This commit is contained in:
@@ -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();
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user