Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possible localization/interpolation specific error and fallback #31

Open
williamhjcho opened this issue Apr 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@williamhjcho
Copy link
Contributor

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).

@williamhjcho williamhjcho added the enhancement New feature or request label Apr 5, 2021
@williamhjcho williamhjcho changed the title Add possible translation/interpolation specific error and fallback Add possible localization/interpolation specific error and fallback Apr 5, 2021
@aksh047
Copy link

aksh047 commented Dec 1, 2024

Hi @williamhjcho,

I’d love to work on this issue! I have experience with dart, and I think I can fix this issue. Could you please assign it to me?

Thanks! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants