Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-intl-po

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intl-po

Extract POT from react-intl and convert back to json.

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
845
decreased by-47.45%
Maintainers
1
Weekly downloads
 
Created
Source

react-intl-po

Extract POT from react-intl and convert back to json.

messages.json → POT → PO → translation.json

Travis Codecov Status npm package npm downloads license

Dependency Status devDependency Status peerDependency Status

Installation

$ npm install react-intl-po --save

Requirements and Workflow

  • react-intl
  • babel-plugin-react-intl

RIP Workflow

Usage

There are two sub-commands of react-intl-po or rip:

  1. json2pot: Convert babel-plugin-react-intl's output json file to one .pot file.
  2. po2json: Convert one translated .po file back to json format.

json2pot

$ rip json2pot '_translations/src/**/*.json' \
    -o ./mcs-public.pot
ArgumentsDescription
srcPatternsbabel-plugin-react-intl's output json file
output (-o).pot file to be translated

po2json

$ rip po2json './node_modules/mcs-translation/po/mcs-public*.po' \
    -m './_translations/src/**/*.json' \
    -o './translations.json'
ArgumentsDescription
srcPatternstranslated .po files
messagesPattern (-m)babel-plugin-react-intl's output json file
output (-o)ouput one json formated file to be used in SSR

API

Property

Test

$ npm run test:watch

CONTRIBUTING

  • ⇄ Pull requests and ★ Stars are always welcome.
  • For bugs and feature requests, please create an issue.
  • Pull requests must be accompanied by passing automated tests ($ npm test).

CHANGELOG

LICENSE

MIT: http://michaelhsu.mit-license.org

Keywords

FAQs

Package last updated on 12 Apr 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

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