Move translationRunner under scripts/
This commit is contained in:
parent
3f95b131c1
commit
0540b627e1
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
"dev": "${npm_execpath} run start",
|
||||
"build": "npx webpack",
|
||||
"jsdoc": "npx jsdoc -c jsdoc.conf.js",
|
||||
"manage:translations": "npx ts-node ./translationRunner.ts",
|
||||
"manage:translations": "npx ts-node ./scripts/translationRunner.ts",
|
||||
"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",
|
||||
|
|
|
@ -13,7 +13,7 @@ interface LanguageResult {
|
|||
|
||||
const RFC5646_REGEXP = /^[a-z]{2,3}(?:-(?:x|[A-Za-z]{2,4}))*$/;
|
||||
|
||||
const rootDirectory = path.resolve(__dirname);
|
||||
const rootDirectory = path.resolve(__dirname, '..');
|
||||
const translationsDirectory = path.resolve(rootDirectory, 'app', 'soapbox', 'locales');
|
||||
const messagesDirectory = path.resolve(rootDirectory, 'build', 'messages');
|
||||
const availableLanguages = fs.readdirSync(translationsDirectory).reduce((languages, filename) => {
|
Loading…
Reference in a new issue