@oneflowab/babel-plugin-pomes-extract

0.1.0 • Public • Published

babel-plugin-pomes-extract

Build Status codecov npm version downloads

Babel plugin to extract strings from React components in which Pomes Translation API has been used and gettext-like functions into a gettext POT file.

Usage

yarn add @oneflowab/babel-plugin-pomes-extract

Then you could configure the babel plugin like below:

module.exports = {
  presets: [
    //...
  ],
  plugins: [
    //...
    ['@oneflowab/babel-plugin-pomes-extract', {
      outputDir: 'translations',
      headers: {
        'po-revision-date': new Date().toISOString(),
      },
    }],
  ],
};

/@oneflowab/babel-plugin-pomes-extract/

    Package Sidebar

    Install

    npm i @oneflowab/babel-plugin-pomes-extract

    Weekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    18.8 kB

    Total Files

    10

    Last publish

    Collaborators

    • mehranhatami