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
A long time ago, we decided to create the @s-ui/i18n package by forking the node-polyglot npm library instead of wrapping it and getting the new library updates more easily than now. During this time, we have been iterating @s-ui/i18n with some little customizations that now make it more difficult to update the version with the new node-polyglot one.
One of the useful things the node-polyglot library has and we have not, is to allow @s-ui/i18n consumers to use observability tools to track which translation key does not have a translation and find translation issues on the fly. Our library only writes a console.warn to logo it into the client console browser.
We can disable the console.warn to avoid printing those warnings on the browser console, but in my opinion is better to empower teams to track and detect the translation issues.
Package
@s-ui/i18n@1Description
A long time ago, we decided to create the
@s-ui/i18npackage by forking thenode-polyglotnpm library instead of wrapping it and getting the new library updates more easily than now. During this time, we have been iterating@s-ui/i18nwith some little customizations that now make it more difficult to update the version with the newnode-polyglotone.One of the useful things the
node-polyglotlibrary has and we have not, is to allow@s-ui/i18nconsumers to use observability tools to track which translation key does not have a translation and find translation issues on the fly. Our library only writes aconsole.warnto logo it into the client console browser.Steps to Reproduce
Missingand you will se something like the image bellowExpected behavior: Allow
@s-ui/i18nconsumers to track when a translation key is missing. We have 3️⃣ approaches:console.warn, as is onnode-polyglotat this lineconsole.warnat the same time.logMissingKeyto prevent writing theconsole.warn.Warning
🙏🏻 Please, let me know which approach you like: 1️⃣ , 2️⃣ or 3️⃣ .
Current behavior: When a translation key is missing, a
console.warnappears in the browser console.Additional Information
We can disable the
console.warnto avoid printing those warnings on the browser console, but in my opinion is better to empower teams to track and detect the translation issues.