1.0.7 • Published 6 years ago

webpack-propagate-translation-keys-plugin v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Webpack propagate translation keys plugin WIP

For usage with webpack-extract-translation-keys-plugin:

const path = require('path');
const ExtractTranslationKeysPlugin = require('webpack-extract-translation-keys-plugin');
const ExpandPoFilesPlugin = require('webpack-propagate-translation-keys-plugin');

const translations = path.join(__dirname, 'translation-keys.json');

module.exports = {
    ...,
    plugins: [
        new ExtractTranslationKeysPlugin({
            functionName: '_',
            output: translations
        }),
        new ExpandPoFilesPlugin({
            input: translations,
            localeDir: path.resolve(__dirname, 'locale'), // path to django locale dir
            languages: ['cs'],
            domain: 'webpack'
        })
    ]
};

TODO:

  • correct compiler plugin register
  • parse also VueJs render functions
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago