# bitstillery_pyi18next
This is a fork of pyi18next, that fixes pluralisation count.
[](https://pyi18next.readthedocs.io/en/latest/?badge=latest)
A Python implementation of [i18next](https://github.com/i18next/i18next). Documentation is available at [pyi18next.readthedocs.io](https://pyi18next.readthedocs.io).
## Quick Start
### Install
```
python -m pip install -U bitstillery_pyi18next
```
### Init
We can define a `I18next` object with translations loaded as follow:
```python
import bitstillery_pyi18next as pyi18next
i18n = pyi18next.i18next.I18next(
resources={
'en': {
'translation': {
'key': 'value',
'interpolation': 'Hello, {{name}}!',
'nested': '$t(key)',
}
}
},
default_lng='en',
default_ns='translation'
)
```
### Translate
We can use the `i18n` object we defined to translate:
```python
print(f'{i18n.t("key")=}')
print(f'{i18n.t("interpolation", name="world")=}')
print(f'{i18n.t("nested")=}')
```
The results are:
```
i18n.t("key")='value'
i18n.t("interpolation", name="world")='Hello, world!'
i18n.t("nested")='value'
```
Raw data
{
"_id": null,
"home_page": null,
"name": "bitstillery_pyi18next",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "i18n, i18next, internationalization, localization, translation",
"author": "Gongziting Tech Ltd., Bitstillery",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/19/53/bdd5f9acc64bf32ffa199dc4034ee08387ac00c91ce182666d33a71af1e7/bitstillery_pyi18next-0.0.6.tar.gz",
"platform": null,
"description": "# bitstillery_pyi18next\n\nThis is a fork of pyi18next, that fixes pluralisation count.\n\n[](https://pyi18next.readthedocs.io/en/latest/?badge=latest)\n\nA Python implementation of [i18next](https://github.com/i18next/i18next). Documentation is available at [pyi18next.readthedocs.io](https://pyi18next.readthedocs.io).\n\n## Quick Start\n\n### Install\n\n```\npython -m pip install -U bitstillery_pyi18next\n```\n\n### Init\n\nWe can define a `I18next` object with translations loaded as follow:\n\n```python\nimport bitstillery_pyi18next as pyi18next\n\ni18n = pyi18next.i18next.I18next(\n resources={\n 'en': {\n 'translation': {\n 'key': 'value',\n 'interpolation': 'Hello, {{name}}!',\n 'nested': '$t(key)',\n }\n }\n },\n default_lng='en',\n default_ns='translation'\n)\n```\n\n### Translate\n\nWe can use the `i18n` object we defined to translate:\n\n```python\nprint(f'{i18n.t(\"key\")=}')\nprint(f'{i18n.t(\"interpolation\", name=\"world\")=}')\nprint(f'{i18n.t(\"nested\")=}')\n``` \n\nThe results are:\n\n```\ni18n.t(\"key\")='value'\ni18n.t(\"interpolation\", name=\"world\")='Hello, world!'\ni18n.t(\"nested\")='value'\n``` \n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python implementation of i18next.",
"version": "0.0.6",
"project_urls": null,
"split_keywords": [
"i18n",
" i18next",
" internationalization",
" localization",
" translation"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "db71f8d3b94f6a72d37b51af2580606db2de39571956e3fd89a5e5eb42edf7bf",
"md5": "efb50c33ecc9278eb5adfced954819db",
"sha256": "39872c617193d49266ca08287647090be56117ffef19c04cf7670e27e8941ded"
},
"downloads": -1,
"filename": "bitstillery_pyi18next-0.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "efb50c33ecc9278eb5adfced954819db",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 8786,
"upload_time": "2025-07-28T09:49:45",
"upload_time_iso_8601": "2025-07-28T09:49:45.735262Z",
"url": "https://files.pythonhosted.org/packages/db/71/f8d3b94f6a72d37b51af2580606db2de39571956e3fd89a5e5eb42edf7bf/bitstillery_pyi18next-0.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1953bdd5f9acc64bf32ffa199dc4034ee08387ac00c91ce182666d33a71af1e7",
"md5": "a4f6fa307f2e5878ad0736e580e2e174",
"sha256": "5f19817ae87b33ded207fc25ffafc5024d253dad8605c7531278d6272352de7c"
},
"downloads": -1,
"filename": "bitstillery_pyi18next-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "a4f6fa307f2e5878ad0736e580e2e174",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 10520,
"upload_time": "2025-07-28T09:49:46",
"upload_time_iso_8601": "2025-07-28T09:49:46.781007Z",
"url": "https://files.pythonhosted.org/packages/19/53/bdd5f9acc64bf32ffa199dc4034ee08387ac00c91ce182666d33a71af1e7/bitstillery_pyi18next-0.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-28 09:49:46",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "bitstillery_pyi18next"
}