plugin-i18n-concat

1.5.1 • Public • Published

plugin-i18n-concat

Concat all your i18n files in one file. files should be written like (*).i18n_(*).json

Usage

  • assetsPath: from where we find all the files
  • fileName: name of the final json file
npm install --save-dev plugin-i18n-concat
const I18nPlugin = require('plugin-i18n-concat');
module.exports = {
    plugins: [
        new I18nPlugin({assetsPath: './dist', fileName: 'index'}),
    ]
}

Sample

from: 
    * src/folder1/component1.i18n_fr.json
    * src/folder1/component1.i18n_en.json

    * src/folder2/component2.i18n_fr.json
    * src/folder2/component2.i18n_en.json

to:
    * dist/index.i18n_fr.json
    * dist/index.i18n_en.json

Readme

Keywords

Package Sidebar

Install

npm i plugin-i18n-concat

Weekly Downloads

11

Version

1.5.1

License

MIT

Unpacked Size

5.25 kB

Total Files

4

Last publish

Collaborators

  • vitamin-lab