fix(admin): restore Vite admin source files
This commit is contained in:
1 parent
8fe3a89c36
commit
ac5c0b2dd7
114 files changed
+17272
No files matched your search
@@ -0,0 +1,85 @@
|
||||
export const i18nSchema = {
|
||||
key: 'global.i18n',
|
||||
title: '多语言翻译',
|
||||
icon: 'fas fa-language',
|
||||
description: '配置站点语言、语言切换器和翻译管理。',
|
||||
defaults: {
|
||||
i18n_enabled: false,
|
||||
i18n_default_lang: 'zh-CN',
|
||||
i18n_switcher_position: 'footer',
|
||||
i18n_auto_detect: true,
|
||||
i18n_available_langs: 'zh-CN|简体中文\nen|English\nzh-TW|繁體中文\nja|日本語\nko|한국어\nfr|Français\nde|Deutsch\nes|Español\nru|Русский',
|
||||
i18n_nomenclature: '',
|
||||
i18n_url_strategy: 'query',
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
key: 'basic',
|
||||
title: '基础配置',
|
||||
icon: 'fas fa-globe',
|
||||
fields: [
|
||||
{ key: 'i18n_enabled', label: '启用多语言', type: 'switch', default: false, help: '开启后站点将支持多语言切换' },
|
||||
{
|
||||
key: 'i18n_default_lang',
|
||||
label: '默认语言',
|
||||
type: 'select',
|
||||
default: 'zh-CN',
|
||||
options: [
|
||||
{ label: '简体中文', value: 'zh-CN' },
|
||||
{ label: 'English', value: 'en' },
|
||||
{ label: '繁體中文', value: 'zh-TW' },
|
||||
{ label: '日本語', value: 'ja' },
|
||||
{ label: '한국어', value: 'ko' },
|
||||
{ label: 'Français', value: 'fr' },
|
||||
{ label: 'Deutsch', value: 'de' },
|
||||
{ label: 'Español', value: 'es' },
|
||||
{ label: 'Русский', value: 'ru' },
|
||||
],
|
||||
dependsOn: { key: 'i18n_enabled', value: true },
|
||||
},
|
||||
{ key: 'i18n_auto_detect', label: '自动检测浏览器语言', type: 'switch', default: true, dependsOn: { key: 'i18n_enabled', value: true }, help: '基于浏览器 Accept-Language 自动切换(AKSRT 方案,区别于 zibll IP 定位方案)' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'languages',
|
||||
title: '语言管理',
|
||||
icon: 'fas fa-language',
|
||||
fields: [
|
||||
{ key: 'i18n_available_langs', label: '可用语言列表', type: 'textarea', default: 'zh-CN|简体中文\nen|English\nzh-TW|繁體中文\nja|日本語\nko|한국어\nfr|Français\nde|Deutsch\nes|Español\nru|Русский', dependsOn: { key: 'i18n_enabled', value: true }, help: '每行一个语言:语言代码|显示名称(9 种内置语言)' },
|
||||
{ key: 'i18n_nomenclature', label: '自定义术语', type: 'code', default: '', dependsOn: { key: 'i18n_enabled', value: true }, help: 'JSON 格式自定义翻译术语(key => 翻译),对齐 zibll nomenclature' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'display',
|
||||
title: '展示设置',
|
||||
icon: 'fas fa-eye',
|
||||
fields: [
|
||||
{
|
||||
key: 'i18n_switcher_position',
|
||||
label: '语言切换器位置',
|
||||
type: 'radio',
|
||||
default: 'footer',
|
||||
options: [
|
||||
{ label: '导航栏', value: 'header' },
|
||||
{ label: '页脚', value: 'footer' },
|
||||
{ label: '导航栏+页脚', value: 'both' },
|
||||
{ label: '隐藏', value: 'none' },
|
||||
],
|
||||
dependsOn: { key: 'i18n_enabled', value: true },
|
||||
},
|
||||
{
|
||||
key: 'i18n_url_strategy',
|
||||
label: 'URL 策略',
|
||||
type: 'radio',
|
||||
default: 'query',
|
||||
options: [
|
||||
{ label: '查询参数 (?lang=en)', value: 'query' },
|
||||
{ label: '路径前缀 (/en/page)', value: 'path' },
|
||||
{ label: '子域名 (en.site.com)', value: 'subdomain' },
|
||||
],
|
||||
dependsOn: { key: 'i18n_enabled', value: true },
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in new issue
Block a user