登陆页面多国语 删除 index.html 中的提醒

Former-commit-id: 7ac91a97d7099e6d7a305299853e22d6e66a7e19 [formerly 7ac91a97d7099e6d7a305299853e22d6e66a7e19 [formerly 7ac91a97d7099e6d7a305299853e22d6e66a7e19 [formerly 7ac91a97d7099e6d7a305299853e22d6e66a7e19 [formerly d3c8e02f7d8ac11f6ee71be3bb6335b5e0fca30f [formerly ca8b21bdd1dc11e1275db87af73fd63ca3da6e45]]]]]
Former-commit-id: 5c9665dba48cf8ec22b464e8f457ed65d3ae8576
Former-commit-id: f77ac36d01fc266d9b50ecff59be147937228118
Former-commit-id: ae624c4a80ddc1893482ab9ccc6e93fa51a3a5d8 [formerly 8e2b0a81e70926ede1f89bf57d78780aa7dc82ed]
Former-commit-id: d6210fc03c5ad794599840783cc6b00f2e57f638
Former-commit-id: f79a4a6825c2e08da8523489ac6af841c3c1da38
Former-commit-id: 0db083c931aead9daf95833d39507dfb986fd12e
Former-commit-id: 7511e2c6ac4250c2bd700f4a9a806897a690fa6c
Former-commit-id: 9308f612fb9918414c308940247e8fe2f61b14eb
This commit is contained in:
liyang
2019-05-22 01:30:37 +08:00
parent 005d248dd6
commit 47925646de
8 changed files with 131 additions and 61 deletions

4
.env
View File

@@ -1,5 +1,5 @@
VUE_APP_TITLE=D2Admin
VUE_APP_API=/api/
VUE_APP_REPO=https://github.com/d2-projects/d2-admin
VUE_APP_I18N_LOCALE=en
VUE_APP_I18N_FALLBACK_LOCALE=zh
VUE_APP_I18N_LOCALE=zh
VUE_APP_I18N_FALLBACK_LOCALE=en

View File

@@ -1,51 +0,0 @@
<babeledit_project version="1.2">
<!--
BabelEdit project file
https://www.codeandweb.com/babeledit
This file contains meta data for all translations, but not the translation texts itself.
They are stored in framework-specific message files (.json / .vue / .yaml / .properties)
-->
<preset_collections/>
<framework>vue-json</framework>
<filename>locales.babel</filename>
<folder_node>
<name></name>
<children/>
</folder_node>
<isTemplateProject>false</isTemplateProject>
<languages>
<language>
<code>en-US</code>
<source_id></source_id>
<source_file>src/locales/en.json</source_file>
</language>
<language>
<code>zh-CN</code>
<source_id></source_id>
<source_file>src/locales/zh.json</source_file>
</language>
</languages>
<translation_files>
<translation_file>
<file>src/locales/en.json</file>
</translation_file>
<translation_file>
<file>src/locales/zh.json</file>
</translation_file>
</translation_files>
<editor_configuration>
<copy_templates>
<copy_template>$t('%1')</copy_template>
<copy_template></copy_template>
<copy_template></copy_template>
</copy_templates>
</editor_configuration>
<primary_language>zh-CN</primary_language>
<configuration>
<indent>tab</indent>
<format>namespaced-json</format>
</configuration>
</babeledit_project>

View File

@@ -0,0 +1 @@
e0de8ba3e07826cc9efccc379d7c5ef83608bab7

View File

@@ -1 +1,61 @@
{}
{
"public": {
"error-message": {
"form-not-valid": "Form Check Failure"
},
"rules": {
"required": "{name} is required"
}
},
"views": {
"system": {
"login": {
"footer": {
"button": {
"clause": "Terms",
"help": "Help",
"privacy": "Privacy"
},
"copyright": {
"author": "FairyEver",
"content": "2018 D2 Projects Open Source Organization",
"copyright": "copyright"
}
},
"form": {
"button": {
"login": "Log In"
},
"label": {
"code": "Verification code",
"password": "Password",
"username": "Username"
},
"placeholder": {
"code": "- - - -",
"password": "Password",
"username": "Username"
},
"prepend": {
"code": "Code"
}
},
"motto": {
"text": "Time is the most precious treasure of all wealth."
},
"options": {
"forget-password": "Forget password",
"register": "Registered user"
},
"quick-login": {
"dialog": {
"title": "Quickly select users"
},
"toggle-button": {
"text": "Quickly select users (test function)"
}
}
}
}
}
}

View File

@@ -1 +1,61 @@
{}
{
"public": {
"error-message": {
"form-not-valid": "表单校验失败"
},
"rules": {
"required": "请输入{name}"
}
},
"views": {
"system": {
"login": {
"footer": {
"button": {
"clause": "条款",
"help": "帮助",
"privacy": "隐私"
},
"copyright": {
"author": "FairyEver",
"content": "2018 D2 Projects 开源组织出品",
"copyright": "Copyright"
}
},
"form": {
"button": {
"login": "登录"
},
"label": {
"code": "验证码",
"password": "密码",
"username": "用户名"
},
"placeholder": {
"code": "- - - -",
"password": "密码",
"username": "用户名"
},
"prepend": {
"code": "验证码"
}
},
"motto": {
"text": "时间是一切财富中最宝贵的财富。"
},
"options": {
"forget-password": "忘记密码",
"register": "注册用户"
},
"quick-login": {
"dialog": {
"title": "快速选择用户"
},
"toggle-button": {
"text": "快速选择用户(测试功能)"
}
}
}
}
}
}

View File

@@ -1,7 +1,7 @@
const userDB = [
{ username: 'admin', password: 'admin', uuid: 'admin-uuid', name: '管理员' },
{ username: 'editor', password: 'editor', uuid: 'editor-uuid', name: '编辑' },
{ username: 'user1', password: 'user1', uuid: 'user1-uuid', name: '用户1' }
{ username: 'admin', password: 'admin', uuid: 'admin-uuid', name: 'Admin' },
{ username: 'editor', password: 'editor', uuid: 'editor-uuid', name: 'Editor' },
{ username: 'user1', password: 'user1', uuid: 'user1-uuid', name: 'User1' }
]
export default [

View File

@@ -1 +1 @@
bf433bc08708fd43c3fcf70acb0d3993d9153e7d
cbc630abf031357f47241555ef834ae7c2a9c140

View File

@@ -110,8 +110,8 @@ module.exports = {
// i18n
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'zh',
locale: 'zh',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: true
}