mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Extract new lines.
Fix i18n:collect command to update languages by i18n/index.json definitions.
This commit is contained in:
@ -5,11 +5,12 @@ import {sync as globSync} from 'glob';
|
||||
import {sync as mkdirpSync} from 'mkdirp';
|
||||
import chalk from 'chalk';
|
||||
import prompt from 'prompt';
|
||||
import localesMap from './../src/i18n/index.json';
|
||||
|
||||
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', 'pt', 'uk');
|
||||
const SUPPORTED_LANGS = [DEFAULT_LOCALE, ...Object.keys(localesMap)];
|
||||
|
||||
/**
|
||||
* Aggregates the default messages that were extracted from the app's
|
||||
|
Reference in New Issue
Block a user