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

#1 nested dict json support #17

Closed Girgitt closed 4 years ago

Girgitt commented 4 years ago

This PR adds UT for JSON translation files with nested dictionaries. Originally it's purpose was to add support for nested dictionaries which turned out to be supported out of the box so only UT are added to provide examples on how to properly configure the module.

Additionally UT are fixed - config instance was being modified by each test. Now config is reloaded for each UT.

Girgitt commented 4 years ago

checks for py3.4 seem to fail due to issue within the module itself - pyyaml is not supported on py3.4

danhper commented 4 years ago

Great, thanks a lot for this!!