npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-polish-number-to-words

v1.2.2

Published

Angular pipes and components for converting numbers to grammatically correct **Polish words**, powered by `[polish-number-to-words](https://www.npmjs.com/package/polish-number-to-words)`.

Downloads

140

Readme

ngx-polish-number-to-words

Angular pipes and components for converting numbers to grammatically correct Polish words, powered by [polish-number-to-words](https://www.npmjs.com/package/polish-number-to-words).

Supports:

  • Polish pluralization (e.g., "1 kot", "2 koty", "5 kotów")
  • Integers (e.g., 123 → "sto dwadzieścia trzy")
  • Decimal fractions (e.g., 2.5 → "dwa i jedna druga" or "dwa przecinek pięć")
  • Currency amounts (e.g., 19.99 → "dziewiętnaście złotych dziewięćdziesiąt dziewięć groszy")
  • Common fractions (e.g., 1/4 → "jedna czwarta")

Features

  • Angular standalone pipes
  • Uses the tested logic from polish-number-to-words
  • Strong TypeScript typing
  • Declarative template syntax
  • Drop-in support for currency, fractions, and plural forms

Installation

npm install ngx-polish-number-to-words

Usage in Angular Templates

Import the standalone pipes where needed:

import { NumberToWordsPLPipe, CurrencyToWordsPLPipe } from "ngx-polish-number-to-words";

@Component({
  standalone: true,
  imports: [NumberToWordsPLPipe, CurrencyToWordsPLPipe],
  template: `
    {{ 123.45 | numberToWordsPL }}
    {{ 19.99 | currencyToWordsPL }}
  `,
})
export class MyComponent {}

Available Pipes

pluralizePL

{{ 1 | pluralizePL:'kot':'koty':'kotów' }}
<!-- kot -->
{{ 2 | pluralizePL:'kot':'koty':'kotów' }}
<!-- koty -->
{{ 5 | pluralizePL:'kot':'koty':'kotów' }}
<!-- kotów -->
{{ 5 | pluralizePL:'kot':'koty':'kotów':true }}
<!-- 5 kotów -->
{{ 22 | pluralizePL:'kot':'koty':'kotów':true }}
<!-- 22 koty -->

A default value for the withNumber parameter can be provided using the PLURALIZE_PL_WITH_NUMBERS_DEFAULT provider token.

export const appConfig: ApplicationConfig = {
  providers: [{ provide: PLURALIZE_PL_WITH_NUMBERS_DEFAULT, useValue: true }],
};

See also: pl-plural component

numberToWordsPL

{{ 123.45 | numberToWordsPL }}
<!-- sto dwadzieścia trzy i czterdzieści pięć setnych -->
{{ 0.25 | numberToWordsPL:{ simplifyFraction: true } }}
<!-- jedna czwarta -->

integerToWordsPL

{{ 123 | integerToWordsPL }}
<!-- sto dwadzieścia trzy -->
{{ 1000 | integerToWordsPL }}
<!-- tysiąc -->
{{ 1000 | integerToWordsPL:{ explicitSingleThousand: true } }}
<!-- jeden tysiąc -->

decimalFractionToWordsPL

{{ 0.25 | decimalFractionToWordsPL }}
<!-- dwadzieścia pięć setnych -->
{{ 0.25 | decimalFractionToWordsPL:{ simplifyFraction: true } }}
<!-- jedna czwarta -->
{{ 0.25 | decimalFractionToWordsPL:{ informal: true }}}
<!-- "przecinek dwadzieścia pięć" -->
{{ 0.1247 | decimalFractionToWordsPL:{ informal: true, informalFormIndividualNumberThreshold: 4 }}}
<!-- "przecinek jeden dwa cztery siedem" -->

commonFractionToWordsPL

{{ 3 | commonFractionToWordsPL:4 }}
<!-- trzy czwarte -->
{{ 47 | commonFractionToWordsPL:123 }}
<!-- czterdzieści siedem sto dwudziestych trzecich -->

currencyToWordsPL

{{ 1.01 | currencyToWordsPL }}
<!-- "jeden złoty jeden grosz" -->
{{ 12.34 | currencyToWordsPL }}
<!-- "dwanaście złotych trzydzieści cztery grosze" -->

{{ 1.01 | currencyToWordsPL:['euro','euro','euro']:['cent','centy','centów'] }}
<!-- "jeden euro jeden cent" -->

Available components

pl-plural

Shortcut for using the pluralizePl pipe in HTML.

<pl-plural [value]="5" forms="kot,koty,kotów" />
<!-- kotów -->

<pl-plural [value]="5" forms="kot,koty,kotów" withNumber />
<!-- 5 kotów -->

A default value for the [withNumber] input can be provided using the PLURALIZE_PL_WITH_NUMBERS_DEFAULT provider token.

export const appConfig: ApplicationConfig = {
  providers: [{ provide: PLURALIZE_PL_WITH_NUMBERS_DEFAULT, useValue: true }],
};

Why Use This?

Polish plural and ordinal forms are complex. This package:

  • Applies grammatical gender correctly
  • Understands numeric context (e.g., 21, 122, 1001)
  • Works for currency, informal speech, and compound fractions
  • Saves time writing and maintaining manual logic

TypeScript Support

All pipes and components are fully typed and ready for use in modern Angular and standalone components. All pipes are pure pipes.


License

MIT


Author

Created with 💚 for the Polish language. ~joker876

GitHub Repository