0.0.6 • Published 10 years ago

glotpress-js v0.0.6

Weekly downloads
3
License
GPL-2.0
Repository
github
Last release
10 years ago

GlotPress.js

Scans your JavaScript sources/build files and generates a POT file or a PHP translation file which can be understood by the GlotPress plugin.

Installation

npm install glotpress-js

Usage

var glotpress = require( 'glotpress-js' );
glotpress( {
    inputPaths: <paths to your js files to scan>,
    output: <path to your destination>
    format: <format of the output: POT, PHP or JSON>
    projectName: <Meta information about the project which can be used for autogenerated headers>
} );

See more examples of usage in test/index.js

Using the CLI

  • npm install -g glotpress-js
  • glotpress-js -i <input_file> -o <output_file> -f <format:POT|PHP>

Running the tests

  • Clone the repository
  • npm install
  • mocha

License

GlotPress.js is licensed under GNU General Public License v2 (or later).

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago