developertools-tech / developertools.tech

A collection of tools for developers served as a PWA
https://www.developertools.tech
MIT License
39 stars 45 forks source link

[Req]: [i18n] Plurals #124

Open ivanignatiev opened 10 months ago

ivanignatiev commented 10 months ago

Contact Details

No response

Explain the proposed feature

That is not critical but some words require to use [i18n plurals](https: //www.i18next.com/translation-function/plurals), so t calls need to be improved, i.e. for t('across)`:

...
  "across_one": "{{count}} Розтин",
  "across_two": "{{count}} Розтину",
  "across_few": "{{count}} Розтинів",
  "across_many": "{{count}} Розтинів",
  "across_other": "{{count}} Розтинів",
...
t('across`,  { count: c })

I prefer to create a separate issue as it will require more difficult review than just adding a language.

Explain the possible use cases for the feature

No response

Any other details you would like to provide?

No response

dlford commented 10 months ago

@ivanignatiev thank you for bringing this up, did you want to work on it?

ivanignatiev commented 10 months ago

@dlford I can take this, I will start to work on it in few days