The "hello world !" is correctly displayed, but the "No follower" isn't translated, thus only printing "test".
Having a print(i18n.t('test.zero')) however fixes the issue, but it's not really the expected way to do it lol.
Hi, thanks for the report.
After double-checking, it seems that the library was expecting many instead of other.
Both should now be supported, please try with the latest version.
According to #8, you can set pluralized strings in yaml files easily, without having to add them with a function like in the doc.
So I tested with the following
en.yml
file:And then the following Python code:
The "hello world !" is correctly displayed, but the "No follower" isn't translated, thus only printing "test". Having a
print(i18n.t('test.zero'))
however fixes the issue, but it's not really the expected way to do it lol.Package version: 0.3.7 Python version: 3.8.5