
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A powerful CLI tool for automating i18n setup and management in React applications.
npm install -g @parlai/cli
# or
yarn global add @parlai/cli
Transform your React app to support i18n in three simple steps:
# 1. Set up i18n in your project
parlai setup
# 2. Extract strings from your components
parlai extract ./src
# 3. Transform components to use i18n
parlai transform ./src
setupSets up i18n in your React application by:
parlai setup
# or specify package manager
parlai setup --package-manager yarn
parlai setup --package-manager npm
extractScans your React components and extracts hardcoded strings into a translation file:
locales/en.json with extracted stringsparlai extract <directory>
# Example:
parlai extract ./src
transformTransforms your React components to use i18n:
locales/en.json to exist (created by extract)parlai transform <directory>
# Example:
parlai transform ./src
translate(Optional) Translates extracted strings to other languages using AI:
locales/en.jsonlocales directoryparlai translate --api-key=your-openai-api-key
# or specify languages
parlai translate --api-key=your-key --source en --target fr es de
Here's a complete example of internationalizing a React application:
Install the CLI tool:
yarn global add @parlai/cli
Navigate to your React project:
cd your-react-app
Set up i18n (installs dependencies and creates config):
parlai setup
This creates the necessary configuration files and the locales directory.
Extract strings from your components:
parlai extract ./src
This creates locales/en.json with all your strings.
Transform your components to use i18n:
parlai transform ./src
This updates your components to use the translation system.
(Optional) Generate translations for other languages:
parlai translate --api-key=your-openai-api-key --target fr es
This creates locales/fr.json and locales/es.json with translations.
setup command creates a locales directory for your translation filesextract before transform to ensure all strings are capturedtransform command requires locales/en.json to exist (created by extract)yarn install
yarn build
yarn dev
MIT
FAQs
CLI tool to automate i18n setup and management in React applications
We found that parlai demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.