
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-phraseapp
Advanced tools
react-intl-phraseapp is an addon for react-intl that lets you connect localized react applications to the PhraseApp In-Context Editor.
To use react-intl-phraseapp with your application you have to:
You can find a demo project on GitHub.
npm install react-intl-phraseapp
You can also build it directly from source to get the latest and greatest:
npm run dist
npm install
let config = {
projectId: '<YOUR_PROJECT_ID>',
phraseEnabled: true,
prefix: "[[__",
suffix: "__]]",
fullReparse: true
};
You can find the Project-ID in the Project overview in the PhraseApp Translation Center
Add the following snippet to your react app.
import {initializePhraseAppEditor} from 'react-intl-phraseapp'
let config = {
projectId: '<YOUR_PROJECT_ID>',
phraseEnabled: true,
prefix: "[[__",
suffix: "__]]",
fullReparse: true
};
initializePhraseAppEditor(config);
If this does not work for you, you can also integrate the JavaScript snippet manually.
Find all imports of FormattedMessage
, FormattedHTMLMessage
and change the source from react-intl
to react-intl-phrasapp
.
import {FormattedMessage} from 'react-intl-phraseapp'
This library might not work out of the box for some older browser or IE11. We recommend to add Babel to the build pipeline if those browser need to be supported.
The library inherits common components of the react-intl packages. In case you enabled PhraseApp by calling initializePhraseAppEditor
the behaviour of the components will be changed.
Question? Contact us at: phraseapp.com/contact
Issue? use GitHub issues and share the problem
Run unit tests using jest:
npm test
FAQs
The In-Context-Editor for react using react-intl
We found that react-intl-phraseapp 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.