mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-12 13:23:32 +03:30
fix
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"needHelp": "Need Help?"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"facebook": "Facebook",
|
||||
"footer": "Footer",
|
||||
"github": "Github",
|
||||
"twitter": "Twitter"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"title": "Title"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"title": "Vuetify Alpha",
|
||||
"footer": "2018 Vuetify LLC",
|
||||
"drawerItems": ["Inspire"],
|
||||
"needHelp": "Need help?"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// http://kazupon.github.io/vue-i18n/en/messages.html
|
||||
|
||||
const requireLang = require.context(
|
||||
'@/lang',
|
||||
true,
|
||||
/\.json$/
|
||||
)
|
||||
|
||||
const messages = {}
|
||||
|
||||
for (const file of requireLang.keys()) {
|
||||
if (file === './index.js') continue
|
||||
|
||||
const path = file.replace(/(\.\/|\.json$)/g, '').split('/')
|
||||
|
||||
path.reduce((o, s, i) => {
|
||||
if (o[s]) return o[s]
|
||||
|
||||
o[s] = i + 1 === path.length
|
||||
? requireLang(file)
|
||||
: {}
|
||||
|
||||
return o[s]
|
||||
}, messages)
|
||||
}
|
||||
|
||||
export default messages
|
||||
Reference in New Issue
Block a user