
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
react-intl-po
Advanced tools
Extract POT from react-intl and convert back to json.
messages.json → POT → PO → translation.json
$ npm install react-intl-po --save
^2.0.0
^2.0.0
There are two sub-commands of react-intl-po
or rip
:
.pot
file..json
format.$ rip json2pot '_translations/src/**/*.json' \
-o ./mcs-public.pot
Arguments | Description |
---|---|
srcPatterns | The pattern of .json files extracted from babel-plugin-react-intl |
output (-o) | The output pathname of .pot file to be translated |
message-key (-k) | [Optional] Translation message key (default key is defaultMessage ) |
directory
is set$ rip po2json './node_modules/mcs-translation/po/mcs-public*.po' \
-m './_translations/src/**/*.json' \
-o './translations'
.json file
is set$ rip po2json './node_modules/mcs-translation/po/mcs-public*.po' \`
-m './_translations/src/**/*.json' \
-o './translations.json'
Arguments | Description |
---|---|
srcPatterns | The pattern of translated .po files |
messagesPattern (-m) | The pattern of .json files extracted from babel-plugin-react-intl |
output (-o) | The output pathname of a file / directory |
message-key (-k) | [Optional] Translation message key (default key is defaultMessage ) |
Set the message-key (-k)
to 'id'
of message object from babel-plugin-react-intl (default key is 'defaultMessage'
). (#41)
$ rip po2json './node_modules/mcs-translation/po/mcs-public*.po' \
-m './_translations/src/**/*.json' \
-o './translations' \
-k 'id'
$ rip po2json './node_modules/mcs-translation/po/mcs-public*.po' \`
-m './_translations/src/**/*.json' \
-o './translations.json' \
-k 'id'
$ npm run lint
$ npm run test:watch
$ npm test
).[v2.0.1]
Feb 12, 2017
FAQs
Extract POT from react-intl and convert back to json.
The npm package react-intl-po receives a total of 2,369 weekly downloads. As such, react-intl-po popularity was classified as popular.
We found that react-intl-po demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.