Blame view

build/locale.js 241 Bytes
4a7f28fd   Sergio Crisostomo   eslint and replac...
1
2
3
  const readDir = require('fs').readdirSync;
  const files = readDir('./src/locale/lang');
  const entry = {};
aaf900f3   Lawrence Lee   update locale pac...
4
  files.forEach(file => {
4a7f28fd   Sergio Crisostomo   eslint and replac...
5
6
7
8
      const name = file.split('.')[0];
      entry[name] = './src/locale/lang/' + file;
  });
  module.exports = entry;