add:vue-i18n,admin add file size
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
export default {
|
||||
send: {
|
||||
'prompt1': 'Drag and drop text or files here, or ',
|
||||
'prompt2': 'Days <7 or limited times (deleted after 24h)',
|
||||
'prompt3':'Please enter the text you want to send',
|
||||
'share':'Share',
|
||||
'textShare':'Text Share',
|
||||
'clickUpload': 'Click to upload',
|
||||
'pleaseInputExpireValue': 'Please enter expiration value',
|
||||
'expireStyle': 'Expiration style',
|
||||
'expireData':{
|
||||
'day': 'Days',
|
||||
'hour': 'Hours',
|
||||
'forever': 'Forever',
|
||||
'minute': 'Minutes',
|
||||
'count': 'Times'
|
||||
},
|
||||
'expireValue':{
|
||||
'day': 'Days',
|
||||
'hour': 'Hours',
|
||||
'minute': 'Minutes',
|
||||
'count': 'Times'
|
||||
},
|
||||
'fileType':{
|
||||
'file': 'File',
|
||||
'text': 'Text'
|
||||
}
|
||||
},
|
||||
fileBox: {
|
||||
copySuccess: 'Copied successfully',
|
||||
fileBox: 'File Box',
|
||||
textDetail: 'Text Detail',
|
||||
copy: 'Copy',
|
||||
close: 'Close',
|
||||
delete: 'Delete',
|
||||
download: 'Click to download',
|
||||
detail: 'View details',
|
||||
copyLink: 'Copy link',
|
||||
},
|
||||
admin:{
|
||||
about:{
|
||||
'source1':'This project is open source on Github: ',
|
||||
'source2':'FileCodeBox'
|
||||
},
|
||||
settings: {
|
||||
name: 'Website Name',
|
||||
description: 'Website Description',
|
||||
keywords: 'Keywords',
|
||||
background: 'Background Image',
|
||||
admin_token: 'Admin Password',
|
||||
uploadSize: 'File Size',
|
||||
uploadSizeNote: 'Maximum file size, unit: (bit), 1mb = 1 * 1024 * 1024',
|
||||
openUpload: {
|
||||
'title': 'Enable Upload',
|
||||
'open': 'Enable Guest Upload',
|
||||
'close': 'Disable Guest Upload',
|
||||
'note': 'After disabling, login to the backend is required for uploading.',
|
||||
},
|
||||
file_storage: {
|
||||
'title': 'Storage Engine',
|
||||
'local': 'Local Storage',
|
||||
's3': 'S3 Storage',
|
||||
'note': 'FileCodeBox needs to be restarted after updating.',
|
||||
},
|
||||
mei: 'Every',
|
||||
minute: 'Minutes',
|
||||
upload: 'Upload',
|
||||
files: 'Files',
|
||||
allow: 'Allow',
|
||||
errors: 'Errors',
|
||||
save: 'Save',
|
||||
saveSuccess: 'Saved successfully',
|
||||
},
|
||||
fileView: {
|
||||
code: 'Access Code',
|
||||
prefix: 'File Prefix',
|
||||
suffix: 'File Suffix',
|
||||
text: 'Text',
|
||||
used_count: 'Used Count',
|
||||
expired_count: 'Available Count',
|
||||
size: 'File Size',
|
||||
expired_at: 'Expiration Time',
|
||||
file_path: 'File Path',
|
||||
action: 'Action',
|
||||
delete: 'Delete',
|
||||
},
|
||||
'menu': {
|
||||
'fileManage': 'File Management',
|
||||
'systemSetting': 'System Settings',
|
||||
'about': 'About Us',
|
||||
'color': 'Color Mode',
|
||||
'signout': 'Sign Out',
|
||||
},
|
||||
login: {
|
||||
'managePassword': 'Admin Password',
|
||||
'passwordNotEmpty': 'Password cannot be empty',
|
||||
'login': 'Login',
|
||||
'loginSuccess': 'Login successful',
|
||||
'loginError': 'Login failed',
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import { createI18n } from 'vue-i18n' //引入vue-i18n组件
|
||||
import messages from './index'
|
||||
const language = (
|
||||
navigator.language || 'zh'
|
||||
).toLowerCase();
|
||||
|
||||
const lang = localStorage.getItem('language') || language
|
||||
|
||||
const i18n = createI18n({
|
||||
silentTranslationWarn: true,
|
||||
globalInjection: true,
|
||||
legacy: false,
|
||||
locale: lang,
|
||||
messages,
|
||||
});
|
||||
|
||||
export default i18n
|
||||
@@ -0,0 +1,8 @@
|
||||
import zh from './zh'
|
||||
import en from './en'
|
||||
|
||||
|
||||
export default {
|
||||
zh,
|
||||
en
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
export default {
|
||||
send: {
|
||||
'prompt1': '将文字、文件拖、粘贴到此处,或 ',
|
||||
'prompt2': '天数<7或限制次数(24h后删除)',
|
||||
'prompt3':'请输入您要寄出的文本',
|
||||
'share':'分享',
|
||||
'textShare':'文本分享',
|
||||
'clickUpload': '点击上传',
|
||||
'pleaseInputExpireValue': '请输入有效期',
|
||||
'expireStyle': '过期方式',
|
||||
'expireData':{
|
||||
'day': '天数',
|
||||
'hour': '小时',
|
||||
'forever': '永久',
|
||||
'minute': '分钟',
|
||||
'count': '次数'
|
||||
},
|
||||
'expireValue':{
|
||||
'day': '天',
|
||||
'hour': '时',
|
||||
'minute': '分',
|
||||
'count': '次'
|
||||
},
|
||||
'fileType':{
|
||||
'file': '文件',
|
||||
'text': '文本'
|
||||
}
|
||||
},
|
||||
fileBox: {
|
||||
copySuccess: '复制成功',
|
||||
fileBox: '文件箱',
|
||||
textDetail: '文本详情',
|
||||
copy: '复 制',
|
||||
close: '关 闭',
|
||||
delete: '删 除',
|
||||
download: '点 击 下 载',
|
||||
detail: '查 看 详 情',
|
||||
copyLink: '复制链接',
|
||||
},
|
||||
admin:{
|
||||
about:{
|
||||
'source1':'本项目开源于Github:',
|
||||
'source2':'FileCodeBox'
|
||||
},
|
||||
settings: {
|
||||
name: '网站名称',
|
||||
description: '网站描述',
|
||||
keywords: '关键词',
|
||||
background: '背景图片',
|
||||
admin_token: '管理密码',
|
||||
uploadSize: '文件大小',
|
||||
uploadSizeNote: '最大文件大小,单位:(bit),1mb=1 * 1024 * 1024',
|
||||
openUpload: {
|
||||
'title': '开启上传',
|
||||
'open': '开启游客上传',
|
||||
'close': '关闭游客上传',
|
||||
'note': '关闭之后需要登录后台方可上传',
|
||||
},
|
||||
file_storage: {
|
||||
'title': '存储引擎',
|
||||
'local': '本地存储',
|
||||
's3': 'S3存储',
|
||||
'note': '更新后需要重启FileCodeBox',
|
||||
},
|
||||
mei: '每',
|
||||
minute: '分钟',
|
||||
upload: '上传',
|
||||
files: '个文件',
|
||||
allow: '允许',
|
||||
errors: '次错误',
|
||||
save: '保存',
|
||||
saveSuccess: '保存成功',
|
||||
},
|
||||
fileView: {
|
||||
code: '取件码',
|
||||
prefix: '文件前缀',
|
||||
suffix: '文件后缀',
|
||||
text: '文本',
|
||||
used_count: '已使用次数',
|
||||
expired_count: '可用次数',
|
||||
size: '文件大小',
|
||||
expired_at: '过期时间',
|
||||
file_path: '文件路径',
|
||||
action: '操作',
|
||||
delete: '删除',
|
||||
},
|
||||
'menu': {
|
||||
'fileManage': '文件管理',
|
||||
'systemSetting': '系统设置',
|
||||
'about': '关于我们',
|
||||
'color': '颜色模式',
|
||||
'signout': '退出登录',
|
||||
},
|
||||
login: {
|
||||
'managePassword': '管理密码',
|
||||
'passwordNotEmpty': '密码不能为空',
|
||||
'login': '登 录',
|
||||
'loginSuccess': '登录成功',
|
||||
'loginError': '登录失败',
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user