Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-i18n-add-locales

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-i18n-add-locales - npm Package Compare versions

Comparing version 0.0.2 to 0.0.4

6

index.js

@@ -71,5 +71,5 @@ /*

var targetDir = path.join(path.dirname(file.path), localesFolder);
for (j in basenames) {
var basename = basenames[j];
var targetDir = path.join(path.dirname(file.path), localesFolder);
try {

@@ -95,3 +95,3 @@ fs.mkdirSync(targetDir);

file.path = target;
file.contents = new Buffer('');
file.contents = new Buffer('{}');
}

@@ -103,3 +103,3 @@ else {

path: target,
contents: new Buffer('')
contents: new Buffer('{}')
}));

@@ -106,0 +106,0 @@ }

{
"name": "gulp-i18n-add-locales",
"version": "0.0.2",
"version": "0.0.4",
"description": "Add placeholder JSON files in target locales for i18n-behavior",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,2 +23,5 @@ # gulp-i18n-add-locales

var gutil = require('gulp-util');
var grepContents = require('gulp-grep-contents');
var size = require('gulp-size');
var i18nAddLocales = require('gulp-i18n-add-locales');

@@ -34,4 +37,4 @@

var elements = gulp.src([ 'app/elements/**/*.html' ], { base: 'app' })
.pipe($.grepContents(/i18n-behavior.html/))
.pipe($.grepContents(/<dom-module /));
.pipe(grepContents(/i18n-behavior.html/))
.pipe(grepContents(/<dom-module /));

@@ -42,3 +45,3 @@ var pages = gulp.src([

], { base: 'app' })
.pipe($.grepContents(/is=['"]i18n-dom-bind['"]/));
.pipe(grepContents(/is=['"]i18n-dom-bind['"]/));

@@ -48,3 +51,3 @@ return merge(elements, pages)

.pipe(gulp.dest('app'))
.pipe($.size({
.pipe(size({
title: 'locales'

@@ -51,0 +54,0 @@ }));

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc