Skip to content

Add possible localization/interpolation specific error and fallback #31

Description

@williamhjcho

Allow a fallback/default method to deal with failed localizations (such as returning the key value itself) in the options.

And it might also be interesting to create specialized errors to know why/when/where a localization failed and treat it accordingly. Or maybe not, since depending on the error, it might not be possible to recover anyway.
e.g. interpolation failure due to missing variable could already be handled by fallback (plural + context).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions