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
Hi,
we would like to log which translation keys are actually used in production (for a limited time period). I was wondering how to hook into i18n to intercept all translate calls. I tried a couple of ways, like introducing a custom helper that overrides the default t method call in templates. Works okay, but I only get partial keys like .title and I would like full ones. This also doesn't work for I18n.t calls outside templates. I tried extending I18n module but couldn't make it work.
What would be the best way to get "full-key" logging working?
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
we would like to log which translation keys are actually used in production (for a limited time period). I was wondering how to hook into i18n to intercept all translate calls. I tried a couple of ways, like introducing a custom helper that overrides the default
t
method call in templates. Works okay, but I only get partial keys like.title
and I would like full ones. This also doesn't work forI18n.t
calls outside templates. I tried extendingI18n
module but couldn't make it work.What would be the best way to get "full-key" logging working?
Thank you!
The text was updated successfully, but these errors were encountered: