You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
williamhjcho
changed the title
Add possible translation/interpolation specific error and fallback
Add possible localization/interpolation specific error and fallback
Apr 5, 2021
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).
The text was updated successfully, but these errors were encountered: