Internationalize WordPress themes and plugins with Grunt.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
tasks
test
.editorconfig Add an .editorconfig file and clean up some whitespace. Dec 10, 2015
.gitignore
.jshintrc
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
Gruntfile.js Add tests for single and multiline translators comments. Mar 27, 2015
LICENSE.md
README.md
package.json

README.md

grunt-wp-i18n Build Status

Internationalize WordPress plugins and themes.

WordPress has a robust suite of tools to help internationalize plugins and themes. This plugin brings the power of those existing tools to Grunt in order to make it easy for you to automate the i18n process and make your projects more accessible to an international audience.

If you're not familiar with i18n concepts, read the Internationalization entries in the Plugin Developer Handbook or Theme Developer Handbook.

Getting Started

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-wp-i18n --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks( 'grunt-wp-i18n' );

Requirements

  • This plugin requires Grunt ^1.0.0.
  • PHP CLI must be in your system path.

Tasks

This plugin consists of two configurable tasks: