Move i18n scripts under scripts/ (#4044)

* Move i18n scripts under scripts/
This commit is contained in:
Sam El-Husseini
2020-07-14 12:07:56 -07:00
committed by GitHub
parent c0a0745f85
commit 55e6f8000e
9 changed files with 10 additions and 10 deletions

View File

@@ -407,7 +407,7 @@ goog.require('Blockly.requires')
*/
function buildLangfiles(done) {
// Run js_to_json.py
const jsToJsonCmd = `python ./i18n/js_to_json.py \
const jsToJsonCmd = `python ./scripts/i18n/js_to_json.py \
--input_file ${path.join('msg', 'messages.js')} \
--output_dir ${path.join('msg', 'json')} \
--quiet`;
@@ -418,7 +418,7 @@ function buildLangfiles(done) {
json_files = json_files.filter(file => file.endsWith('json') &&
!(new RegExp(/(keys|synonyms|qqq|constants)\.json$/).test(file)));
json_files = json_files.map(file => path.join('msg', 'json', file));
const createMessagesCmd = `python ./i18n/create_messages.py \
const createMessagesCmd = `python ./scripts/i18n/create_messages.py \
--source_lang_file ${path.join('msg', 'json', 'en.json')} \
--source_synonym_file ${path.join('msg', 'json', 'synonyms.json')} \
--source_constants_file ${path.join('msg', 'json', 'constants.json')} \