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
Support suppressing errors #807
Comments
I found that this issue is duplicated (#619), but it is really required feature. |
Do you have |
I want to test this scenario : <IntlProvider locale={browserLocale} defaultLocale={defaultLocale}>
...
</IntlProvider> I can get browser's locale from So you want to say, if browserLocale is null, we need to set it as defaultLocale like this? <IntlProvider
locale={locale || defaultLocale}
defaultLocale={defaultLocale}
messages={translation[locale || defaultLocale]}>
...
</IntlProvider> Then what's the purpose of prop |
|
Okay, sorry for late reply. |
With async translation resources, my console is messed up with
console.error
from[React Intl] ...
while testing.I couldn't find any options to suppress these errors. The code is saying
process.env.NODE_ENV === 'production'
, but it doesn't make sense during testing process.Could you support this feature?
The text was updated successfully, but these errors were encountered: