PHPackages                             bkubicki/magento2-polish-noun-numeral-declension-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. bkubicki/magento2-polish-noun-numeral-declension-adapter

ActiveLibrary[Localization &amp; i18n](/categories/localization)

bkubicki/magento2-polish-noun-numeral-declension-adapter
========================================================

Magento 2 adapter for polish noun numeral declension library

1.0.0(6y ago)201MITPHPPHP ^7.2.0|~7.3.0CI failing

Since May 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bartoszkubicki/magento2-polish-noun-numeral-declension-adapter)[ Packagist](https://packagist.org/packages/bkubicki/magento2-polish-noun-numeral-declension-adapter)[ RSS](/packages/bkubicki-magento2-polish-noun-numeral-declension-adapter/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

BKubicki Magento 2 Polish nouns numeral declension adapter
==========================================================

[](#bkubicki-magento-2-polish-nouns-numeral-declension-adapter)

Overview
--------

[](#overview)

Magento 2 adapter for library [bkubicki/magento2-polish-noun-numeral-declination-adapter](https://github.com/bartoszkubicki/polish-noun-numeral-declension)

Usage
-----

[](#usage)

`__p` returns phrase with count argument. If we have all strings in store in english and we translate them onto other languages (as we should), for words that needs numeral declension, we should provide distinctive strings even in english, so translation will pick proper declension in polish. For example for word comment:

For en\_US.csv:

```
"comment","comment"
"comments","comments"
"comments-g","comments"

```

For pl\_PL.csv it should look like:

```
"comment","komentarz"
"comments","komentarzy"
"comments-g","komentarze"

```

and in phtml usage will be like

```

```

Drawback of this approach may be necessity of keeping en\_US translation, but magento provides it out of the box. Although, special, numeral noun declension doesn't seem to be common and will be used only from time to time.

Prerequisites
-------------

[](#prerequisites)

- Magento 2.2/2.3+
- PHP 7.2/7.3

Installation
------------

[](#installation)

To install the extension use the following commands:

```
 composer require bkubicki/magento2-polish-noun-numeral-declination-adapter
```

Tests
-----

[](#tests)

### Unit

[](#unit)

1. Run command

```
./vendor/bin/phpunit -c phpunit.xml --testsuite "Unit" --coverage-html coverage/coverage-html --colors=always

```

2. You can also use some alias:

- `test-unit-coverage` - *`vendor/bin/phpunit -c phpunit.xml --testsuite "Unit" --coverage-html coverage/coverage-html --colors=always`*

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/bartoszkubicki/magento2-polish-noun-numeral-declension-adapter/tags).

Authors
-------

[](#authors)

- [Bartosz Kubicki](https://github.com/bartoszkubicki)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2193d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20238194?v=4)[Bartosz Kubicki](/maintainers/bartoszkubicki)[@bartoszkubicki](https://github.com/bartoszkubicki)

---

Tags

declensionfunctionsi18nmagentomagento2magento2-extensionmagento2-moduletranslationmagento2declensionnounnumeraldecle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bkubicki-magento2-polish-noun-numeral-declension-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/bkubicki-magento2-polish-noun-numeral-declension-adapter/health.svg)](https://phpackages.com/packages/bkubicki-magento2-polish-noun-numeral-declension-adapter)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[splendidinternet/mage2-locale-de-de

German (Germany) language

861.0M2](/packages/splendidinternet-mage2-locale-de-de)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[imaginaerum/magento2-language-fr-fr

Magento2 French Language Pack (fr\_FR)

41738.1k2](/packages/imaginaerum-magento2-language-fr-fr)[smile/module-debug-toolbar

Smile Debug Toolbar

146247.6k2](/packages/smile-module-debug-toolbar)[symfonysi/magento2-sl-si

Slovenian (Slovenia) language package for Magento 2

1273.6k](/packages/symfonysi-magento2-sl-si)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
