Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

i18n modules do not merge #143

@jkatrenic

Description

@jkatrenic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions