Исправлена команда для сбора ключей перевода

This commit is contained in:
ErickSkrauch 2016-11-17 01:56:34 +03:00
parent 5142d65b39
commit 332c3d0ef7
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
"up": "npm update", "up": "npm update",
"test": "karma start ./karma.conf.js", "test": "karma start ./karma.conf.js",
"lint": "eslint ./src", "lint": "eslint ./src",
"i18n": "cd ./scripts && ./node_modules/.bin/babel-node i18n-collect.js", "i18n": "./node_modules/.bin/babel-node ./scripts/i18n-collect.js",
"build": "rm -rf dist/ && webpack --progress --colors -p" "build": "rm -rf dist/ && webpack --progress --colors -p"
}, },
"dependencies": { "dependencies": {

View File

@ -5,8 +5,8 @@ import {sync as mkdirpSync} from 'mkdirp';
import chalk from 'chalk'; import chalk from 'chalk';
import prompt from 'prompt'; import prompt from 'prompt';
const MESSAGES_PATTERN = '../dist/messages/**/*.json'; const MESSAGES_PATTERN = `${__dirname}/../dist/messages/**/*.json`;
const LANG_DIR = '../src/i18n'; const LANG_DIR = `${__dirname}/../src/i18n`;
const DEFAULT_LOCALE = 'en'; const DEFAULT_LOCALE = 'en';
const SUPPORTED_LANGS = [DEFAULT_LOCALE].concat('ru', 'be', 'uk'); const SUPPORTED_LANGS = [DEFAULT_LOCALE].concat('ru', 'be', 'uk');