Blame view

build/locale.js 233 Bytes
aaf900f3   Lawrence Lee   update locale pac...
1
2
3
4
5
6
7
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