@automattic/babel-plugin-i18n-calypso
v1.2.0Babel plugin i18n Calypso
A Babel plugin to generate a POT file for translate calls. Works with i18n-calypso translate
and @wordpress/i18n __
, _n
, _x
, _nx
calls.
Usage
Include in your Babel configuration as a plugin.
Example Babel config file:
{
"plugins": [ "@automattic/babel-plugin-i18n-calypso" ]
}
Options
dir
- Set the output directory for the POT files.base
- Set a base path that will be used as a base for the relative path to the source file in the reference comment.
npm i @automattic/babel-plugin-i18n-calypso
Metadata
- GPL-2.0-or-later
- Whatever
- Automattic Inc.
- released 8/5/2020
Downloads
Maintainers
a8c, blowery, bms, chaosexanima, copons, dchymko, elazzabi, enej, enzoru, getdave, gwwar, hanifn, hewsut, jblz, jeffikus, jeherve, joshbetz, jsnajdr, marekhrabe, markowsiak, mjangda, mppfeiffer, netsuso, nickdaugherty, ockham, pandah3, porada, quasistar, rodrigoia8c, rrinat, sarayourfriend, scinos, sgomes, sirreal, tug, tyxla, undemian, vindl, wunderbart, yuliyan,