1.5.1 • Published 5 years ago

plugin-i18n-concat v1.5.1

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

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
1.5.1

5 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1-security

7 years ago