gulp-plntr-locale

0.1.2 • Public • Published

gulp-plntr-locale NPM version Build Status

gulp-plntr-locale is a Gulp plugin that converts YAML localization files to Planitar angular Locale services. Gulp is a streaming build system utilizing node.js.

Install

npm install --save-dev gulp-plntr-locale

Usage

var plntrLocale = require('gulp-plntr-locale');
 
gulp.src('./src/**/*.yaml')
  .pipe(plntrLocale())
  .pipe(gulp.dest('./dist/'))

API

plntrLocale(options)

options.moduleName

Type: String Default: 'app.i18n'

i18n module name.

options.extractLanguage

Type: function|RegExp Default: /[^_]*(?=\.[^.]*$)/ (E.g. extracts en from text_en.yaml)

A regular expression or a function that returns the processed file's language according to its file path.

Package Sidebar

Install

npm i gulp-plntr-locale

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

14.1 kB

Total Files

7

Last publish

Collaborators

  • korya