
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.
@frontkom/formatjs-utils
Advanced tools
formatjs-utils is a versatile package providing a collection of tools designed to augment FormatJS utilities. The primary role of these tools centers on the extraction and compilation of translatable message strings, making this an essential addition to localization and internationalization workflows.
Use the package manager npm to install @frontkom/formatjs-utils.
npm install @frontkom/formatjs-utils
The package comes with the following scripts:
i18n-extract: Extracts the translatable strings from your application.i18n-compile: Compiles these extracted strings back into JSON files.These scripts can either be included into your package.json's scripts section or can be used with npm exec directly.
npm exec i18n-extract
npm exec i18n-compile
This package requires a specific configuration file i18n.config.js to be created in your project's root directory. This is to customize the utility to your project's specific needs. All the fields are optional.
i18n.config.jsmodule.exports = {
languages: ['en', 'fr'],
sourceFiles: 'src/**/*.{ts,tsx,js,jsx}',
ignore: '**/*.d.ts',
targetFolder: 'src/lang',
};
Make sure to add the scripts to your package.json in order to extract and compile the messages:
# Extract the messages
npm run i18n-extract
# Compile the messages into JSON
npm run i18n-compile
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
Collection of formatjs helpers for React projects
We found that @frontkom/formatjs-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers 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.