UNPKG
esvcp-ui-pc
Version:
latest (0.1.34)
0.1.34
ESLink Vue Common Package UI - runtime and build UI on Vue For PC
esvcp-ui-pc
/
build
/
locale.js
9 lines
(8 loc)
•
241 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
readDir = require(
'fs'
).readdirSync;
const
files = readDir(
'./src/locale/lang'
);
const
entry = {}; files.forEach(
file
=> {
const
name =
file
.split(
'.'
)[
0
]; entry[name] =
'./src/locale/lang/'
+
file
; }); module.exports = entry;