From 332c3d0ef7f3de5c63f776642823bf3c61282a37 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Thu, 17 Nov 2016 01:56:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D0=B0?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=B1=D0=BE=D1=80=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B5=D0=B9=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- scripts/i18n-collect.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d586638..e777d2c 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "up": "npm update", "test": "karma start ./karma.conf.js", "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" }, "dependencies": { diff --git a/scripts/i18n-collect.js b/scripts/i18n-collect.js index 6a4657c..ab8a0e6 100644 --- a/scripts/i18n-collect.js +++ b/scripts/i18n-collect.js @@ -5,8 +5,8 @@ import {sync as mkdirpSync} from 'mkdirp'; import chalk from 'chalk'; import prompt from 'prompt'; -const MESSAGES_PATTERN = '../dist/messages/**/*.json'; -const LANG_DIR = '../src/i18n'; +const MESSAGES_PATTERN = `${__dirname}/../dist/messages/**/*.json`; +const LANG_DIR = `${__dirname}/../src/i18n`; const DEFAULT_LOCALE = 'en'; const SUPPORTED_LANGS = [DEFAULT_LOCALE].concat('ru', 'be', 'uk');