Description
Is your feature request related to a problem? Please describe.
I am using i18n-js for expsing a subset of my i18n keys to my javascript code.
Those keys are never used by any ruby code but I would like to report from javascript when a key (or a set of keys) are used.
I can easily make an API controller or a Channel for this and send a message from javascript but then I do not know how to tell Coverband to mark it.
According to this file I would be inclined to use Coverband.configuration.translations_tracker.track_key(flat_key)
but this does not really feel like a public API
How can I do this ?
Describe the solution you'd like
In the best ever world, I wish the railtie would register a (safe) way to notify Coverband that a key has been used.
But in a more realistic world, I would love to a have public API available for marking a key as used (and possibly other entrypoint into Coverband )
Describe alternatives you've considered
- Using
Coverband.configuration.translations_tracker.track_key(flat_key)
: feels like using a private API - fiddle manually with Redis : sounds like an even more terrible idea in terms of maintenance and leaking abstractions
Additional context
I could easily tune something for my use case, but I thought that I might not be the only one with this need
Activity