sectasy0/pyi18n

Translations In "YAML" Files Not Recognized

Closed this issue · 2 comments

Describe the bug
If you try to do normal translations with the PyI18n class based on .yaml files (not .yml), you will get an error message for each key that a suitable translation could not be found, even though they actually exist in the files. If you change the file extension back to .yml, everything works fine.

To Reproduce
I have uploaded the example code to this repository.
Note that pyi18n_example_does_work returns the correct string Hello World! while pyi18n_example_should_work returns missing translation for: en.hello.
The two packages are identical except for the extensions of the YAML files.

Expected behavior
Files with the .yaml extension should behave the same as files with the .yml extension.

Additional context
The problem was supposedly already solved in #17, but apparently it didn't work completely.

Hello, thanks for your issue. Did you download the package using pip? if yes then you have to wait a bit because the version with the fix is not released yet, I will do it as soon as possible.