thermondo / pytest-translations

test translation files with pytest
Other
17 stars 3 forks source link

Change from locale/dialect to language breaks tests #43

Open jwag956 opened 5 years ago

jwag956 commented 5 years ago

Commit 693a31c changed dictionary extraction to strip locale/dialect (e.g. da_DK -> da) But my understanding of babel and .po files is that it is common to have lines like:

"Language: da_DK\n"

tests no longer run since in po_spelling.py: if self.language not in supported_languages:

will never match. Any insights?