Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrey-skl/angular-gettext-cli
A command line interface for angular-gettext-tools
https://github.com/andrey-skl/angular-gettext-cli
Last synced: 3 months ago
JSON representation
A command line interface for angular-gettext-tools
- Host: GitHub
- URL: https://github.com/andrey-skl/angular-gettext-cli
- Owner: andrey-skl
- Created: 2014-12-16T12:44:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-26T13:29:27.000Z (over 5 years ago)
- Last Synced: 2024-05-10T22:45:16.689Z (9 months ago)
- Language: JavaScript
- Size: 530 KB
- Stars: 14
- Watchers: 4
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
angular-gettext-cli [![Build Status](https://travis-ci.org/huston007/angular-gettext-cli.svg?branch=master)](https://travis-ci.org/huston007/angular-gettext-cli)
===================A command line interface for [angular-gettext-tools](https://github.com/rubenv/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)' --exclude '**/*.spec.js' --dest './extract.pot' --marker-name i18n`
### Parameters:
* `--files` - a [glob](https://github.com/isaacs/node-glob) pattern to specify files to process
* `--exclude` - (optional) a [glob](https://github.com/isaacs/node-glob) pattern to specify files to ignore
* `--dest` - path to file to write extracted words.
* `--marker-name` - (optional) a name of marker to search in js-files (see [angular-gettext-tools](https://github.com/rubenv/angular-gettext-tools#options))
* `--marker-names` - (optional) comma separated string of marker names to search for in the js-files (see [angular-gettext-tools](https://github.com/rubenv/angular-gettext-tools#options))
* `--attributes` - (optional) comma separated string of marker names to search for in the html-files (see [angular-gettext-tools](https://github.com/rubenv/angular-gettext-tools#options))## Compilation:
`angular-gettext-cli --compile --files 'test/*.po' --dest 'test/output.js' --format javascript --module gettext-test`
### Parameters:
* `--files` - a [glob](https://github.com/isaacs/node-glob) pattern to specify files to process
* `--dest` - path to file to write extracted words.
* `--format` - `javascript` or `json`. Default is `javascript`
* `--module` - For the `javascript` output format, the angular module name to use in the output file. Default is `gettext`For more options, see [angular-gettext-tools](https://github.com/rubenv/angular-gettext-tools#options).