diff --git a/docs/development/yarn-commands.md b/docs/development/yarn-commands.md index f03b8e073..0180ed89f 100644 --- a/docs/development/yarn-commands.md +++ b/docs/development/yarn-commands.md @@ -15,7 +15,9 @@ NODE_ENV=development - `yarn build` - Compile without a dev server, into `/static` directory. ## Translations -- `yarn manage:translations` - Normalizes translation files. Should always be run after editing i18n strings. +- `yarn i18n` - Rebuilds app and updates English locale to prepare for translations in other languages. Should always be run after editing i18n strings. + +- `yarn manage:translations` - A low-level translations manager utility. ## Tests - `yarn test:all` - Runs all tests and linters. diff --git a/package.json b/package.json index 79d36fa67..561279c1c 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "build": "npx webpack", "audit:fix": "npx yarn-audit-fix", "manage:translations": "npx ts-node ./scripts/translationRunner.ts", + "i18n": "rm -rf build tmp && npx cross-env NODE_ENV=production ${npm_execpath} run build && ${npm_execpath} manage:translations en", "test": "npx cross-env NODE_ENV=test npx jest", "test:coverage": "${npm_execpath} run test --coverage", "test:all": "${npm_execpath} run test:coverage && ${npm_execpath} run lint",