New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-i18n-compile2

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-i18n-compile2

Compilation of gulp-18n-extract files into language files for aurelia-i18n.

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-i18n-compile2

NPM version

This gulp tasks compiles the extract content from gulp-i18n-extract into language json files for Aurelia-i18n .

This task ist part of the i18n toolchain:

  1. [Tag](to be implemented) text nodes in HTML with an i18n key attribute
  2. Extract keys and values
  3. Translate
  4. Compile into language files for i18n like Aurelia-i18n

Installation

Install gulp-i18n-compile2 using npm into your local repository.

npm install gulp-i18n-compile2 --save-dev

Usage

Setup a gulp task i18n-compile.

var gulp = require('gulp');
var i18n_compile = require('gulp-i18n-compile2');

var options = {
	fileName: "translation.json",
	defaultLanguage: "en"
};

gulp.task('i18n-compile', function() {
  return gulp.src("lang/language.json")
             .pipe(i18n_compile(options))
             .pipe(gulp.dest("./locales"));
});

License

Apache 2.0

FAQs

Package last updated on 17 May 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

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