
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@open-xchange/i18next-po-parser
Advanced tools
Scans source code for i18next translations, and generates the contents for PO/POT files.
A small utility that scans source code for calls of the i18next translation function t() and the react-i18next component <Trans>, extracts all translation keys, and generates the contents for a PO/POT file (GetText translation catalog) containing all extracted strings.
Essentially, this utility glues together the packages i18next-parser (parses source code for t function calls etc.), and gettext-converter (generates the PO file contents from i18next catalog data).
npm install @open-xchange/i18next-po-parser
# or
yarn add @open-xchange/i18next-po-parser
import { parseSourceFiles } from "@open-xchange/i18next-po-parser";
// returns a `Map<string, string>` (namespaces to PO catalog data)
const map = await parseSourceFiles({
project: "Example App",
files: "src/**/*.{js,ts,jsx,tsx}",
});
The command line tool generates separate POT files per namespace. The placeholder [NAMESPACE] in the option --output will be replaced with the actual namespaces.
# "npx" or "yarn"
npx i18next-po-parser --project "Example App" --files "src/**/*.{js,ts,jsx,tsx}" --output dist/[NAMESPACE].pot
FAQs
Scans source code for i18next translations, and generates the contents for PO/POT files.
The npm package @open-xchange/i18next-po-parser receives a total of 31 weekly downloads. As such, @open-xchange/i18next-po-parser popularity was classified as not popular.
We found that @open-xchange/i18next-po-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 14 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.