Sign In

gulp-plntr-locale

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-plntr-locale

Converts YAML localization files to Planitar angular Locale services

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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.

Keywords

plntr

FAQs

Package last updated on 11 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts