0.1.0 • Published 4 years ago

@oneflowab/babel-plugin-pomes-extract v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

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(),
      },
    }],
  ],
};
0.1.0

4 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago