Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
e2d1d04d
Commit
e2d1d04d
authored
Jan 22, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fb8a5aed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
main.js
src/main.js
+27
-5
No files found.
src/main.js
View file @
e2d1d04d
...
...
@@ -41,7 +41,11 @@ import { VTable, VPagination } from 'vue-easytable'
import
'viewerjs/dist/viewer.css'
import
Viewer
from
'v-viewer'
import
locale
from
'element-ui/lib/locale'
;
import
enLocale
from
'element-ui/lib/locale/lang/en'
import
zhLocale
from
'element-ui/lib/locale/lang/zh-CN'
import
twLocale
from
'element-ui/lib/locale/lang/zh-TW'
import
jaLocale
from
'element-ui/lib/locale/lang/ja'
Vue
.
component
(
VTable
.
name
,
VTable
)
Vue
.
component
(
VPagination
.
name
,
VPagination
)
...
...
@@ -154,13 +158,31 @@ const i18n = new VueI18n({
locale
:
'zh-CN'
,
// 语言标识
//this.$i18n.locale // 通过切换locale的值来实现语言切换
messages
:
{
'zh-CN'
:
require
(
'./assets/common/lang/zh'
),
// 中文语言包
'en-US'
:
require
(
'./assets/common/lang/en'
),
// 英文语言包
'zh-TW'
:
require
(
'./assets/common/lang/zh-tw'
),
// 台湾语言包
'Japanese'
:
require
(
'./assets/common/lang/jp'
)
// 日本语言包
// 'zh-CN': require('./assets/common/lang/zh'), // 中文语言包
// 'en-US': require('./assets/common/lang/en'), // 英文语言包
// 'zh-TW': require('./assets/common/lang/zh-tw'), // 台湾语言包
// 'Japanese': require('./assets/common/lang/jp') // 日本语言包
'zh-CN'
:
{
...
require
(
'./assets/common/lang/zh'
),
...
zhLocale
,
},
// 中文语言包
'en-US'
:
{
...
require
(
'./assets/common/lang/en'
),
...
enLocale
,
},
// 英文语言包
'zh-TW'
:
{
...
require
(
'./assets/common/lang/zh-tw'
),
...
twLocale
,
},
// 台湾语言包
'Japanese'
:
{
...
require
(
'./assets/common/lang/jp'
),
jaLocale
,
}
// 日本语言包
}
})
locale
.
i18n
((
key
,
value
)
=>
i18n
.
t
(
key
,
value
))
import
Router
from
'vue-router'
const
originalPush
=
Router
.
prototype
.
push
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment