Skip to content

pr0da/angular-gettext-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: this is a forked version of angular-gettext-cli to add json extraction possibility.

Additional cli parameters: --json-properties [property]

Usage: angular-gettext-cli --files "example/*.+(html|js|json)" --dest example/dist/extract.pot --json-properties title --json-properties validationMessage --json-properties description


angular-gettext-cli Build Status

A command line interface for angular-gettext-tools

Installation

npm install angular-gettext-cli -g for global using or npm install angular-gettext-cli --save-dev for local.

Extraction:

angular-gettext-cli --files "./app/*.+(js|html)" --dest ./extract.pot --marker-name i18n

Parameters:

  • --files - a glob pattern to specify files to process
  • --dest - path to file to write extracted words.
  • --marker-name - a name of marker to search in js-files (see angular-gettext-tools)

Compilation:

angular-gettext-cli --compile --files 'test/*.po' --dest test/output.js --format javascript --module gettext-test

Parameters:

  • --files - a glob pattern to specify files to process
  • --dest - path to file to write extracted words.
  • --format - javascript or json
  • --module - For the javascript output format, the angular module name to use in the output file.

For more options, see angular-gettext-tools.

About

A command line interface for angular-gettext-tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.5%
  • Shell 5.7%
  • HTML 0.8%