0.1.1 • Published 2 years ago

@modera/i18next-extract-webpack-plugin v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@modera/i18next-extract-webpack-plugin

This plugin will traverse your code in order to find i18next translation keys.

Installation

// with npm
npm install --save-dev @modera/i18next-extract-webpack-plugin

// with yarn
yarn add --dev @modera/i18next-extract-webpack-plugin

Usage

// webpack.config.js
const I18nextExtractWebpackPlugin = require('@modera/i18next-extract-webpack-plugin');

module.exports = {
    //...
    plugins: [
        new I18nextExtractWebpackPlugin({
            enabled: true,
            outputPath: 'translations',
            extractOptions: {
                defaultNS: 'messages',
            },
        })
    ],
}
0.1.1

2 years ago

0.1.0

2 years ago