kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Add `yarn i18n` command to fix translation files
rodzic
b7c1d7d44a
commit
18bcd1c084
|
@ -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.
|
||||
|
|
|
@ -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",
|
||||
|
|
Ładowanie…
Reference in New Issue