grunt-aggregate-i18n
v1.1.0
Published
Aggregate i18n/l10n map string files into one file per brand/territory
Downloads
8
Maintainers
Readme
grunt-aggregate-i18n
Aggregate i18n/l10n map string files into one file per brand/territory
Install
npm install grunt-aggregate-i18n --save-dev
Usage:
require('grunt-aggregate-i18n')(grunt);
grunt.initConfig( "grunt-aggregate-i18n" : {
fallbackLanguage: 'en',
fallbackTerritory: 'US',
languages: ['en', 'nb', 'un'],
territories: ['US', 'GB', 'NO', 'yu', 'ZH'],
src: [
{
namespace: 'test',
path: './test/src/{{language}}/{{territory}}/test.json'
},
{
namespace: 'one',
path: './test/other/{{language}}{{territory}}.json'
}
],
dest: './test/dest/l10n/{{language}}_{{territory}}.json'
});
See Test (In-Progress)