1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-26 21:25:18 +01:00
ntfy/web/public/static/langs
Bartosz Moczulski 338cab1660 i18n: Introduce plural forms for reservations, emails, messages
In many languages there is more than one plural form of nouns and rules
for choosing the correct one are often far more complex than in English.
Luckily both react-i18next and Weblate provide built-in support for
translating and selecting plural forms in accordance with grammatical
rules of any given language.

In order to enable plural forms `{count: n}` option is added to relevant
`t()` calls. In translations files "_one" and "_other" suffix is added
to English labels such that Weblate can detect which entries represent a
set of plural forms and show appropriate language-specific form on the
translation page. E.g. in Polish there are 2 plural forms and hence 3
resulting suffixes: "_one", "_few", "_many".

Note on transition period: in the absence of expected suffixed variants
react-i18next will use non-suffixed one (if present) so existing
translations will continue to work just fine even if they happen to be
grammatically imperfect. Translators can provide proper plural forms in
once this change is merged and Weblate will then replace non-suffixed
labels with the suffixed ones.
2023-03-21 10:03:36 +01:00
..
ar.json Translated using Weblate (Arabic) 2023-03-09 22:48:12 +01:00
bg.json Translated using Weblate (Bulgarian) 2023-03-20 10:37:28 +01:00
cs.json Translated using Weblate (Czech) 2023-03-09 22:48:11 +01:00
da.json Translated using Weblate (Danish) 2023-03-07 05:13:38 +01:00
de.json Translated using Weblate (German) 2023-03-09 22:48:09 +01:00
en.json i18n: Introduce plural forms for reservations, emails, messages 2023-03-21 10:03:36 +01:00
es.json Translated using Weblate (Spanish) 2023-03-09 22:48:11 +01:00
fr.json Translated using Weblate (French) 2023-03-13 14:03:22 +01:00
hu.json Fix UI bug with publish dialog 2023-02-11 14:13:10 -05:00
id.json Translated using Weblate (Indonesian) 2023-03-09 22:48:11 +01:00
it.json Translated using Weblate (Italian) 2023-03-20 10:37:28 +01:00
ja.json Translated using Weblate (Japanese) 2023-03-13 14:03:22 +01:00
ko.json Fix UI bug with publish dialog 2023-02-11 14:13:10 -05:00
nb_NO.json Translated using Weblate (Norwegian Bokmål) 2023-02-21 03:51:05 +01:00
nl.json Translated using Weblate (Dutch) 2023-02-21 03:51:09 +01:00
pl.json Translated using Weblate (Polish) 2023-03-09 22:48:12 +01:00
pt.json Translated using Weblate (Portuguese) 2023-03-20 10:37:29 +01:00
pt_BR.json Fix UI bug with publish dialog 2023-02-11 14:13:10 -05:00
ro.json Translated using Weblate (Romanian) 2023-02-23 22:37:17 +01:00
ru.json Translated using Weblate (Russian) 2023-03-13 14:03:23 +01:00
sv.json Translated using Weblate (Swedish) 2023-03-07 05:13:37 +01:00
tr.json Translated using Weblate (Turkish) 2023-03-09 22:48:10 +01:00
uk.json Translated using Weblate (Ukrainian) 2023-03-07 05:13:37 +01:00
zh_Hans.json Translated using Weblate (Chinese (Simplified)) 2023-03-20 10:37:29 +01:00
zh_Hant.json Translated using Weblate (Chinese (Traditional)) 2023-02-21 03:51:09 +01:00