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!
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
tmethod call in templates. Works okay, but I only get partial keys like.titleand I would like full ones. This also doesn't work forI18n.tcalls outside templates. I tried extendingI18nmodule but couldn't make it work.What would be the best way to get "full-key" logging working?
Thank you!