0.0.7 • Published 3 years ago

wp-webpack-translation-plugin v0.0.7

Weekly downloads
5
License
ISC
Repository
github
Last release
3 years ago

WP Webpack translation plugin

Requirements

  • webpack
  • gettext

Installation

npm i wp-webpack-translation-plugin

Usage

You need to require the plugin in the webpack.config.js like so:

const WpTranslationPlugin = require('wp-webpack-translation-plugin');

And add this to the plugins array of the configuration:

new WpTranslationPlugin({
    domain   : '[your language domain name]',
    phpDirectories: [
        '[path to theme]/**/*.php'
    ],
    languagesDirectory : '[directory where the .pot, .po and .mo files reside]'
})
0.0.7

3 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

1.0.0

5 years ago