init: package name refactor
This commit is contained in:
38
nl-vue/src/locales/index.js
Normal file
38
nl-vue/src/locales/index.js
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright [2022] [https://www.xiaonuo.vip]
|
||||
* Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
|
||||
* 1.请不要删除和修改根目录下的LICENSE文件。
|
||||
* 2.请不要删除和修改Snowy源码头部的版权声明。
|
||||
* 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
|
||||
* 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
|
||||
* 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
|
||||
* 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
|
||||
*/
|
||||
import { createI18n } from 'vue-i18n'
|
||||
import zhCN from 'ant-design-vue/es/locale/zh_CN'
|
||||
import enGB from 'ant-design-vue/es/locale/en_GB'
|
||||
import zh_cn from './lang/zh-cn.js'
|
||||
import en from './lang/en.js'
|
||||
import tool from '@/utils/tool'
|
||||
import sysConfig from '@/config/index'
|
||||
|
||||
export const messages = {
|
||||
'zh-cn': {
|
||||
lang: zhCN,
|
||||
...zh_cn
|
||||
},
|
||||
en: {
|
||||
lang: enGB,
|
||||
...en
|
||||
}
|
||||
}
|
||||
|
||||
const i18n = createI18n({
|
||||
legacy: false,
|
||||
locale: tool.data.get('APP_LANG') || sysConfig.LANG,
|
||||
fallbackLocale: 'zh-cn',
|
||||
globalInjection: true,
|
||||
messages
|
||||
})
|
||||
|
||||
export default i18n
|
||||
72
nl-vue/src/locales/lang/en.js
Normal file
72
nl-vue/src/locales/lang/en.js
Normal file
@@ -0,0 +1,72 @@
|
||||
/**
|
||||
* Copyright [2022] [https://www.xiaonuo.vip]
|
||||
* Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
|
||||
* 1.请不要删除和修改根目录下的LICENSE文件。
|
||||
* 2.请不要删除和修改Snowy源码头部的版权声明。
|
||||
* 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
|
||||
* 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
|
||||
* 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
|
||||
* 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
|
||||
*/
|
||||
export default {
|
||||
common: {
|
||||
searchButton: 'search',
|
||||
resetButton: 'reset',
|
||||
addButton: 'add',
|
||||
editButton: 'edit',
|
||||
removeButton: 'delete',
|
||||
batchRemoveButton: 'batch Remove',
|
||||
detailButton: 'detail',
|
||||
searchKey: 'Search Key',
|
||||
imports: 'Import',
|
||||
more: 'More',
|
||||
export: 'Export'
|
||||
},
|
||||
model: {
|
||||
user: 'user',
|
||||
org: 'org',
|
||||
pos: 'pos',
|
||||
role: 'role',
|
||||
bizUser: 'bizUser'
|
||||
},
|
||||
login: {
|
||||
signInTitle: 'Sign in',
|
||||
forgetPassword: 'Forget password',
|
||||
signIn: 'Sign in',
|
||||
signInOther: 'Sign in with',
|
||||
accountPlaceholder: 'Please input a user account',
|
||||
accountError: 'Please input a user account',
|
||||
PWPlaceholder: 'Please input a password',
|
||||
PWError: 'Please input a password',
|
||||
validLaceholder: 'Please input a valid',
|
||||
validError: 'Please input a valid',
|
||||
accountPassword: 'Account Password',
|
||||
phoneSms: 'Phone SMS',
|
||||
phonePlaceholder: 'Please input a phone',
|
||||
smsCodePlaceholder: 'Please input a SMS code',
|
||||
getSmsCode: 'SMS code',
|
||||
machineValidation: 'Machine Validation',
|
||||
sendingSmsMessage: 'Sending SMS Message',
|
||||
newPwdPlaceholder: 'Please input a new password',
|
||||
backLogin: 'Back Login',
|
||||
restPassword: 'Rest Password',
|
||||
emailPlaceholder: 'Please input a email',
|
||||
emailCodePlaceholder: 'Please input a Email code',
|
||||
restPhoneType: 'For phone rest',
|
||||
restEmailType: 'For email rest'
|
||||
},
|
||||
user: {
|
||||
userStatus: 'User Status',
|
||||
resetPassword: 'Reset Password',
|
||||
role: 'Role',
|
||||
batchExportButton: 'Batch Export',
|
||||
grantRole: 'Grant Role',
|
||||
grantResource: 'Grant Resource',
|
||||
grantPermission: 'Grant Permission',
|
||||
exportUserInfo: 'Export UserInfo',
|
||||
placeholderNameAndSearchKey: 'Please enter your name or keyword',
|
||||
placeholderUserStatus: 'Please select status',
|
||||
popconfirmDeleteUser: 'Are you sure you want to delete it?',
|
||||
popconfirmResatUserPwd: 'Are you sure you want to reset?'
|
||||
}
|
||||
}
|
||||
74
nl-vue/src/locales/lang/zh-cn.js
Normal file
74
nl-vue/src/locales/lang/zh-cn.js
Normal file
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* Copyright [2022] [https://www.xiaonuo.vip]
|
||||
* Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
|
||||
* 1.请不要删除和修改根目录下的LICENSE文件。
|
||||
* 2.请不要删除和修改Snowy源码头部的版权声明。
|
||||
* 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
|
||||
* 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
|
||||
* 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
|
||||
* 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
|
||||
*/
|
||||
import 'dayjs/locale/zh-cn'
|
||||
|
||||
export default {
|
||||
common: {
|
||||
searchButton: '查询',
|
||||
resetButton: '重置',
|
||||
addButton: '增加',
|
||||
editButton: '编辑',
|
||||
removeButton: '删除',
|
||||
batchRemoveButton: '批量删除',
|
||||
detailButton: '详情',
|
||||
searchKey: '关键词',
|
||||
imports: '导入',
|
||||
more: '更多',
|
||||
export: '导出'
|
||||
},
|
||||
model: {
|
||||
user: '用户',
|
||||
org: '机构',
|
||||
pos: '职位',
|
||||
role: '角色',
|
||||
bizUser: '人员'
|
||||
},
|
||||
login: {
|
||||
signInTitle: '用户登录',
|
||||
forgetPassword: '忘记密码',
|
||||
signIn: '登录',
|
||||
signInOther: '其他登录方式',
|
||||
accountPlaceholder: '请输入账号',
|
||||
accountError: '请输入账号',
|
||||
PWPlaceholder: '请输入密码',
|
||||
PWError: '请输入密码',
|
||||
validLaceholder: '请输入验证码',
|
||||
validError: '请输入验证码',
|
||||
accountPassword: '账号密码',
|
||||
phoneSms: '手机号登录',
|
||||
phonePlaceholder: '请输入手机号',
|
||||
smsCodePlaceholder: '请输入短信验证码',
|
||||
getSmsCode: '获取验证码',
|
||||
machineValidation: '机器验证',
|
||||
sendingSmsMessage: '短信发送中',
|
||||
newPwdPlaceholder: '请输入新密码',
|
||||
backLogin: '返回登录',
|
||||
restPassword: '重置密码',
|
||||
emailPlaceholder: '请输入邮箱号',
|
||||
emailCodePlaceholder: '请输入邮件验证码',
|
||||
restPhoneType: '手机号找回',
|
||||
restEmailType: '邮箱找回'
|
||||
},
|
||||
user: {
|
||||
userStatus: '用户状态',
|
||||
resetPassword: '重置密码',
|
||||
role: '角色',
|
||||
batchExportButton: '批量导出',
|
||||
grantRole: '授权角色',
|
||||
grantResource: '授权资源',
|
||||
grantPermission: '授权权限',
|
||||
exportUserInfo: '导出信息',
|
||||
placeholderNameAndSearchKey: '请输入姓名或关键词',
|
||||
placeholderUserStatus: '请选择状态',
|
||||
popconfirmDeleteUser: '确定要删除吗?',
|
||||
popconfirmResatUserPwd: '确定要重置吗?'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user