danhper / python-i18n

Easy to use i18n library for Python
https://pypi.python.org/pypi/python-i18n
MIT License
228 stars 45 forks source link

How to format yaml file for pluralized strings? #8

Closed CappyT closed 6 years ago

CappyT commented 6 years ago

The docs doesn't reference how to save pluralized strings in the yaml file, just how to create them from code.

How do you add pluralized strings in the yaml file? I tried this:

en:
  somevar:
    zero: 'zero'
    one: 'test'
    many: 'test %{count}'

but this doesn't work.

danhper commented 6 years ago

Thanks for reporting, this should be fixed in the latest version.

vintprox commented 4 years ago

While it may be fixed, it isn't documented yet.