first commit
This commit is contained in:
8
iview/build/locale.js
Normal file
8
iview/build/locale.js
Normal file
@@ -0,0 +1,8 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user