https://github.com/mjancarik/gulp-messageformat
Gulp plugin for messageformat js
https://github.com/mjancarik/gulp-messageformat
Last synced: 6 months ago
JSON representation
Gulp plugin for messageformat js
- Host: GitHub
- URL: https://github.com/mjancarik/gulp-messageformat
- Owner: mjancarik
- License: apache-2.0
- Created: 2014-11-20T10:07:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-09-11T17:13:02.000Z (about 7 years ago)
- Last Synced: 2025-03-07T04:37:28.570Z (7 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gulp-messageformat
==================Gulp plugin for Messageformat
## Install
npm install gulp-messageformat --save-dev
## Usage
Returns compiled and concated file.
```javascript
var gulp = require('gulp');
var messageFormat = require('gulp-messageformat');gulp.task('compile', function() {
gulp.src('src/**/*.json')
.pipe(messageFormat({ locale:'en' }))
.pipe(gulp.dest('dist/');
});
```
##Options##### locale
Type: `string`
Default: 'en'
Values: see [messageformatjs `locale` option](https://github.com/SlexAxton/messageformat.js)
##### namespace
Type: `?string`
Values: {'module.exports', null}
Default: 'i18n'