# grunt-wp-i18n

> Internationalize WordPress themes and plugins.

Latest version **1.0.4** (published 2025-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-wp-i18n
pnpm add grunt-wp-i18n
yarn add grunt-wp-i18n
bun add grunt-wp-i18n
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2025-07-08 |
| First published | 2014-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12.0 |
| Dependencies | 2 |
| Unpacked size | 46 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 157 |
| Author | Brady Vercher |
| Maintainers | bradyvercher |
| Keywords | gruntplugin, wordpress, i18n, translation |

## Links

- npm: https://www.npmjs.com/package/grunt-wp-i18n
- Repository: https://github.com/cedaro/grunt-wp-i18n
- Issues: https://github.com/cedaro/grunt-wp-i18n/issues
- npm.io page: https://npm.io/package/grunt-wp-i18n

## Dependencies (2)

- [grunt](https://npm.io/package/grunt.md) ^1.6.1
- [node-wp-i18n](https://npm.io/package/node-wp-i18n.md) ^1.2.8

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2025-07-08
- 1.0.3 — 2018-12-21
- 1.0.2 — 2018-02-28
- 1.0.1 — 2017-10-30
- 1.0.0 — 2017-02-07
- 0.5.4 — 2016-02-25
- 0.5.3 — 2015-07-30
- 0.5.2 — 2015-04-23
- 0.5.1 — 2015-03-27
- 0.5.0 — 2015-02-05
- 0.4.9 — 2014-10-17
- 0.4.8 — 2014-09-04
- 0.4.7 — 2014-08-04
- 0.4.6 — 2014-07-23
- 0.4.5 — 2014-06-06
- … 9 more at https://npm.io/package/grunt-wp-i18n/versions

## README

# grunt-wp-i18n [![Build Status](https://travis-ci.org/cedaro/grunt-wp-i18n.png?branch=develop)](https://travis-ci.org/cedaro/grunt-wp-i18n)

> 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](https://developer.wordpress.org/plugins/internationalization/) or [Theme Developer Handbook](https://developer.wordpress.org/themes/functionality/internationalization/).


## Getting Started

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
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:

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

### Requirements

* This plugin requires Grunt `^1.0.0`.
* [PHP CLI](http://www.php.net/manual/en/features.commandline.introduction.php) must be in your system path.


## Tasks

This plugin consists of two configurable tasks:

* [makepot](docs/makepot.md) - Generate a POT file.
* [addtextdomain](docs/addtextdomain.md) - Add a text domain to gettext functions.

---
_Source: https://npm.io/package/grunt-wp-i18n · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
