@automattic/babel-plugin-i18n-calypso

1.2.0 • Public • Published

Babel 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.

/@automattic/babel-plugin-i18n-calypso/

    Package Sidebar

    Install

    npm i @automattic/babel-plugin-i18n-calypso

    Weekly Downloads

    490

    Version

    1.2.0

    License

    GPL-2.0-or-later

    Unpacked Size

    40.7 kB

    Total Files

    8

    Last publish

    Collaborators

    • porada
    • imranh920
    • gmjuhasz
    • rcarvalho
    • briowill
    • bgrgicak
    • dhenridev
    • daledupreez-a8c
    • jeherve
    • yuliyan
    • micbosia8c
    • jeremy.yip
    • wpvip-bot
    • etobiesen
    • kzoschke
    • brunobasto
    • kat3samsin
    • fmfernandes
    • newspack
    • robertsreberski_a8c
    • msurdi-a8c
    • chihsuan
    • manzoorwanijk
    • rjchow
    • andrea-sdl
    • scjr
    • spsiddarthan
    • t2dw4t
    • ehg_
    • wwa
    • sirreal
    • elazzabi
    • royho
    • luismulinari
    • macbre
    • mjangda
    • matticbot
    • a8c
    • blowery
    • noahtallen
    • hanifn
    • sgomes
    • tyxla
    • saroshaga
    • parkcityj
    • nejclovrencic
    • sirbrillig
    • chriszarate
    • robersongomes
    • johngodley