mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2025-05-04 10:13:56 -04:00
rename files for clarity
also made the naming convention consistent (dashes not underscore)
This commit is contained in:
parent
0f1dafef0e
commit
1646441f4a
7 changed files with 18 additions and 18 deletions
|
@ -12,7 +12,7 @@ const args = process.argv.slice(2);
|
|||
|
||||
const usage = `
|
||||
Pull blocks translations from Transifex. Usage:
|
||||
node sync_tx_blocks.js path
|
||||
node tx-pull-blocks.js path
|
||||
path: where to put the downloaded json files
|
||||
NOTE: TX_TOKEN environment variable needs to be set with a Transifex API token. See
|
||||
the Localization page on the GUI wiki for information about setting up Transifex.
|
|
@ -12,7 +12,7 @@ const args = process.argv.slice(2);
|
|||
|
||||
const usage = `
|
||||
Pull supported language translations from Transifex. Usage:
|
||||
node sync_tx_translations.js tx-project tx-resource path
|
||||
node tx-pull-translations.js tx-project tx-resource path
|
||||
tx-project: project on Transifex (e.g., scratch-editor)
|
||||
tx-resource: resource within the project (e.g., interface)
|
||||
path: where to put the downloaded json files
|
||||
|
@ -29,7 +29,7 @@ import fs from 'fs';
|
|||
import path from 'path';
|
||||
import transifex from 'transifex';
|
||||
import async from 'async';
|
||||
import {flattenJson, validateTranslations} from './tx_util.js';
|
||||
import {flattenJson, validateTranslations} from './tx-util.js';
|
||||
import locales, {localeMap} from '../src/supported-locales.js';
|
||||
|
||||
// Globals
|
|
@ -15,8 +15,8 @@ const transifex = require('transifex');
|
|||
const args = process.argv.slice(2);
|
||||
|
||||
const usage = `
|
||||
Sync English source strings with Transifex. Usage:
|
||||
node sync_tx_src.js tx-project tx-resource english-json-file
|
||||
Push English source strings to Transifex. Usage:
|
||||
node tx-push-src.js tx-project tx-resource english-json-file
|
||||
tx-project: the project slug on transifex
|
||||
tx-resource: the resource slug on transifex
|
||||
english-json-file: path to the en.json source
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
git checkout master
|
||||
|
||||
npm run sync:editor
|
||||
npm run pull:editor
|
||||
|
||||
npm run test
|
||||
|
|
@ -19,7 +19,7 @@ if (args.length < 1) {
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import async from 'async';
|
||||
import {validateTranslations} from './tx_util.js';
|
||||
import {validateTranslations} from './tx-util.js';
|
||||
import locales from '../src/supported-locales.js';
|
||||
|
||||
// Globals
|
Loading…
Add table
Add a link
Reference in a new issue