
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
ngx-translate-parser-plural-select
Advanced tools
ngx-translate parser that supports pluralization and select (a la Angular's i18n module)
ngx-translateJust yarn install ngx-translate-parser-plural-select and use when
adding ngx-translate to the imports section in your @NgModule:
@NgModule({
...
imports: [
...
TranslateModule.forRoot({
parser: {
provide: TranslateParser,
useClass: TranslateICUParser
}
})
]
})
Now you can use plural and select in your translations.
{
"HERO": "The hero is {gender, select, m {male} f {female}}",
"WOLVES": "The hero saw {wolves, plural, =0 {no wolf} =1 {a wolf} =2 {two wolves} other {a pack of wolves}}",
"CROWS": "You could see {crows.length, plural, =1 {a crow} few {a few crows} many {a murder of crows}}"
}
And even more complex usages:
{
"COMPLEX": "{count, plural, =0 { nadie } =1 {{gender, select, m {un hombre} f {una mujer}}} other {{{heroes.length}} {gender, select, m {hombres} f {mujeres}}}}"
}
FAQs
ngx-translate parser that supports pluralization and select (a la Angular's i18n module)
The npm package ngx-translate-parser-plural-select receives a total of 1,128 weekly downloads. As such, ngx-translate-parser-plural-select popularity was classified as popular.
We found that ngx-translate-parser-plural-select 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.

Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.

Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.

Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.