Open jkatrenic opened 5 years ago
Hi,
we use setup
'webapp2_extras.i18n': { 'domains': ['messages', 'messages2'] }
i18n modules never merge, just second is applied.
I think reason is in https://webapp2.readthedocs.io/en/latest/_modules/webapp2_extras/i18n.html
_trans = support.Translations.load(dirname, locales, domain) if isinstance(_trans, NullTranslations): trans_null = _trans continue
isinstance(_trans, NullTranslations) is always true as support.Translations extends NullTranslations: https://github.com/python-babel/babel/blob/master/babel/support.py#L525
isinstance(_trans, NullTranslations)
support.Translations
NullTranslations
Duplicate of #85
Hi,
we use setup
i18n modules never merge, just second is applied.
I think reason is in https://webapp2.readthedocs.io/en/latest/_modules/webapp2_extras/i18n.html
isinstance(_trans, NullTranslations)
is always true assupport.Translations
extendsNullTranslations
: https://github.com/python-babel/babel/blob/master/babel/support.py#L525