Skip to content

Logging used translation keys #712

Description

@jrizmal

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions