renamed files to make it more clear what are actual translations in the lang foler

pull/1/head
Ondřej Hruška 7 years ago
parent dcdfa511e7
commit 1c673a5a71
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 0
      lang/_js-dump.php
  2. 11
      lang/_js-lang-loader.js
  3. 0
      lang/js-keys.js
  4. 2
      webpack.config.js

@ -5,11 +5,11 @@
const { spawnSync } = require('child_process')
const path = require('path')
const selectedKeys = require('./keys')
const selectedKeys = require('./js-keys')
module.exports = function (source) {
let child = spawnSync(path.resolve(__dirname, 'dump_selected.php'), selectedKeys, {
timeout: 10000
let child = spawnSync(path.resolve(__dirname, '_js-dump.php'), selectedKeys, {
timeout: 1000
})
let data
@ -48,6 +48,7 @@ module.exports = function (source) {
mappings: 'AAAA;AAAA'
}
this.callback(null, `/* Generated language file */
module.exports=${JSON.stringify(data)}`, map)
this.callback(null,
`/* Generated language file */\n` +
`module.exports=${JSON.stringify(data)}\n`, map)
}

@ -44,7 +44,7 @@ module.exports = {
},
{
test: /lang\/.+?\.php$/,
loader: './lang/lang-loader.js'
loader: './lang/_js-lang-loader.js'
}
]
},

Loading…
Cancel
Save