🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

gulp-po2angular

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-po2angular

Gulp plugin to convert .po files to JSON for use with angular-gettext

0.1.0
Source
npm
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-po2angular

Convert .po files to JSON for use with angular-gettext.

Install

Install with npm

npm install --save-dev gulp-po2angular

Examples

var gulp = require('gulp');
var po2angular = require('gulp-po2angular');

gulp.task('po2json', function () {
    return gulp.src(['po/**/*.po'])
        .pipe(po2angular())
        .pipe(gulp.dest('dist/translations/'));
});

Differences from grunt-angular-gettext

This plugin is similar to grunt-angular-gettext except that it outputs JSON instead of JSON wrapped in JavaScript. It's up to you how you load the resulting JSON into your app.

Differences from gulp-po2json

gulp-po2json generates slightly different JSON than what angular-gettext expects. It's pretty easy to convert its output (either raw or Jed-style) to the format that angular-gettext expects, but why bother when this plugin exists?

Keywords

gulpplugin

FAQs

Package last updated on 21 Feb 2014

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