Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
gulp-i18n-add-locales
Advanced tools
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)
<template is="i18n-dom-bind" id="module id">
is searched for id<dom-module id="module id">
is searched for id npm install --save-dev gulp-i18n-add-locales
var gutil = require('gulp-util');
var i18nAddLocales = require('gulp-i18n-add-locales');
var config = {
// list of target locales to add
locales: gutil.env.targets ? gutil.env.targets.split(/ /) : []
}
// Add locales to I18N-ready elements and pages
gulp.task('locales', function() {
var elements = gulp.src([ 'app/elements/**/*.html' ], { base: 'app' })
.pipe($.grepContents(/i18n-behavior.html/))
.pipe($.grepContents(/<dom-module /));
var pages = gulp.src([
'app/**/*.html',
'!app/{bower_components,styles,scripts,images,fonts}/**/*'
], { base: 'app' })
.pipe($.grepContents(/is=['"]i18n-dom-bind['"]/));
return merge(elements, pages)
.pipe(i18nAddLocales(config.locales))
.pipe(gulp.dest('app'))
.pipe($.size({
title: 'locales'
}));
});
i18nAddLocales(locales)
FAQs
Add placeholder JSON files in target locales for i18n-behavior
The npm package gulp-i18n-add-locales receives a total of 3 weekly downloads. As such, gulp-i18n-add-locales popularity was classified as not popular.
We found that gulp-i18n-add-locales demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.