Skip to content

Clean up gettext methods in flask-babel/__init__.py #126

@nberrios

Description

@nberrios

Taking a look at get_translations() method, it looks like it will never return None. However, all of the gettext wrapper methods (gettext, ngettext, pgettext, npgettext) seem to first check if t is None where t is the result of get_translations().

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