pladaria / js-gettext

Fast text extraction from JS sources (js, ts, jsx). Outputs gettext compatible `pot` files or `json`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

js-gettext

Text extraction from JS sources (js, ts, jsx)

Features

  • Super fast!
  • Outputs gettext compatible pot files or json

Install

npm i --global js-gettext

Usage

  Usage: js-gettext [options] <input> <output>


  Options:

    -V, --version                                     output the version number
    -f, --format <value>                              Output format (pot|json)
    -s, --singular <string>                           Singular translate function
    -p, --plural <string>                             Plural translate function
    -i, --ignore <glob>                               Ignore pattern
    -o, --formatterOptions <key1=value1;key2=value2>  Formatter options
    -v, --verbose                                     Verbose mode
    -h, --help                                        output usage information

About

Fast text extraction from JS sources (js, ts, jsx). Outputs gettext compatible `pot` files or `json`


Languages

Language:JavaScript 100.0%