IBM-Cloud / gp-angular-client

Angular client for Globalization Pipeline on IBM Bluemix
https://www.ng.bluemix.net/docs/services/GlobalizationPipeline/index.html
Apache License 2.0
1 stars 8 forks source link

Change warning logs to debug logs #23

Closed cdouine39 closed 7 years ago

cdouine39 commented 7 years ago

Hi,

when the user's language is not available in the bundles, warning logs are displayed in the console. Those logs come from L 240 and L 277 : logWarning("[normalizeLanguage] fallback returned null...using source lang");

When there's a lot of translations done on one page, this slows down the page. I tested with changing this to : DEBUG && logDebug("[normalizeLanguage] fallback returned null...using source lang"); that makes the page run much faster.

Would you agree to do that change ? I'd be happy to do it, if you're fine with it.

Thanks, Camille

srl295 commented 7 years ago

fixed in #24