Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@lingui/format-po
Advanced tools
Read and write message catalogs in Gettext PO format with ICU plurals
@lingui/format-po
is part of LinguiJS. See the
documentation for all information, tutorials and examples.
#, Comment for translators
#: src/App.js:4, src/Component.js:2
msgid "MessageID"
msgstr "Translated Message"
npm install --save-dev @lingui/format-po
# yarn add --dev @lingui/format-po
// lingui.config.{js,ts}
import {formatter} from "@lingui/format-po"
export default {
[...]
format: formatter({lineNumbers: false}),
}
Possible options:
export type PoFormatterOptions = {
/**
* Print places where message is used
*
* @default true
*/
origins?: boolean
/**
* Print line numbers in origins
*
* @default true
*/
lineNumbers?: boolean
/**
* Print `js-lingui-id: Xs4as` statement in extracted comments section
*
* @default false
*/
printLinguiId?: boolean
}
This package is licensed under MIT license.
FAQs
Gettext PO format for Lingui Catalogs
The npm package @lingui/format-po receives a total of 106,403 weekly downloads. As such, @lingui/format-po popularity was classified as popular.
We found that @lingui/format-po demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.