Socket
Socket
Sign inDemoInstall

gulp-pottopo

Package Overview
Dependencies
61
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-pottopo

Gulp plugin to generate a default PO translation from GNU Gettext POT files


Version published
Weekly downloads
2
Maintainers
1
Install size
1.20 MB
Created
Weekly downloads
 

Readme

Source

gulp-pottopo

Generate a default PO translation from GNU Gettext POT files.

Install

Install with npm

npm install gulp-pottopo --save-dev

Example

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

gulp.task('pottopo', function () {
    return gulp.src('languages/*.pot', {base: '.'})
        .pipe(pottopo({
            // optional parameters
        }))
        .pipe(gulp.dest('.'));
});

The output file will be renamed to [Filename without extension][Separator option][Language option].po, meaning translation.pot with default language becomes translation-en_US.po.

Options

  • language: Language code for the generated file. Default: en_US.
  • separator: Character that separates the filename from the language code. Default: -.

Keywords

FAQs

Last updated on 26 May 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc