Simple jinja2 filter to choose correct plural form for Russian language.
You need to register filter on the template environment:
from pluralize import pluralize environment.filters[‘pluralize’] = pluralize
or in Flask:
from flask import current_app from pluralize import pluralize
app.template_filter(‘pluralize’)(pluralize)
Example of usage:
{{ results_count|pluralize([‘товар’, ‘товара’, ‘товаров’]) }}
Metadata
Release files for jinja2-pluralize-filter 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jinja2-pluralize-filter-0.0.1.tar.gz | 1.8 kB | Without provenance | Details |
Release files / jinja2-pluralize-filter-0.0.1.tar.gz
| Download URL | jinja2-pluralize-filter-0.0.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
165cb6a4934559203d2a0f97a2829605da653cbbd0b8b23b33197b7d3975b407
|
|
BLAKE2b-256 checksum How to use checksums |
ecc44eef02e7473fdd85da83657281ca39efa1483397eab98f4c45f2fd23193d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jinja2-pluralize-filter 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.