Natural Polyglot Machine

    gulp-wc-i18n

    1.1.0 • Public • Published

    gulp-wc-i18n Build Status

    This is the production build pipeline for use with the wc-i18n component. This step will parse HTML files looking for wc-i18n-src tags with the locale-dir property set to [[localeDir()]] or {{localeDir()}}.

    With all of the discovered files, the corresponding locale files will be inlined so no request is made for the locale files.

    Example Usage

    var gulp = require('gulp');
    var wcI18n = require('gulp-wc-i18n');
    
    gulp.task('webcomponent:i18n', function() {
      return gulp.src('**/*.html')
        .pipe(wcI18n())
        .pipe(gulp.dest('./dist'));
    });

    License

    MIT

    Install

    npm i gulp-wc-i18n

    DownloadsWeekly Downloads

    2

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • jshcrowthe