gulp-i18n-add-locales
Add placeholder JSON files for target locales for i18n-behavior
Project template available at polymer-starter-kit-i18n. On Github Pages (https://t2ym.github.io/polymer-starter-kit-i18n)
Features
- Add placeholder empty JSON files in locales folder for the target custom element
<template is="i18n-dom-bind" id="module id">
is searched for id<dom-module id="module id">
is searched for id
Install
npm install --save-dev gulp-i18n-add-locales
Usage
var gutil = ; var grepContents = ; var size = ; var i18nAddLocales = ; var config = // list of target locales to add locales: gutilenvtargets ? gutilenvtargets : // Add locales to I18N-ready elements and pages gulp;
API
i18nAddLocales(locales)
- locales: Array of String, list of target locales to add their placeholder JSON files