🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

grunt-poeditor-rs

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-poeditor-rs

Translation library for po editor

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
-85.71%
Maintainers
2
Weekly downloads
 
Created
Source

grunt-poeditor-rs

This is an experimental library for importing po terms and definitions into a simple JSON file. Can also be used from within grunt. The standalone version also supports exporting terms and definitions to POEditor.

If you want to use the standalone scripts, rename constants.js.example to constants.js and change as appropriate. If you want to use the grunt component, you can invoke it like this:

poeditor: {
    download: {
      download: {
        type: 'json',
        dest: 'translations.?.json' // ? will be replaced by a language code
      }
    },
    options: {
        apiToken: 'insert-your-token-here',
        languages: {
          'en-us': 'en',
          'ja': 'ja'
        },
        project: 'your projectID goes here (as a string)'
    }
  }

Parts of the grunt implementation were inspired by work of Philippe Vignau, https://github.com/Philoozushi/grunt-poeditor-pz.

FAQs

Package last updated on 01 Jul 2016

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