-
Notifications
You must be signed in to change notification settings - Fork 156
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
Is there a way to turn off warnings for non-defined keys? #45
Comments
why not just define a key to fix it? |
@cwtuan - good question - here's why: Since the site is in English, and the developers speak English natively, made sense to write a little helper that creates the translations from the English text - and use the defaultMessage mechanism to fallback.
In render we have:
Thus Therefore, we don't need English versions of these because we fallback on defaultMessage. Since we have a huge amount to translate, saves us from having English versions of most translations. Also, keeps our views readable with the real text vs harder to grok keys. Hope this all makes some sense... or maybe I am making an odd move here? |
This pr would resolve: #44 |
I second this. During development, it is annoying to have so many warnings. |
I am wondering if it's possible to turn off the browser console warnings for missing keys in a locale file?
eg in chrome console:
react-intl-universal key "ZIP_CODE" not defined in en-US
tracker.js:13 react-intl-universal key "REDEEM_PROMO_CODE" not defined in en-US
etc.
This is causing a lot of log pollution.
Thanks.
The text was updated successfully, but these errors were encountered: