Skip to content

sergioisidoro/e7o

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

E7o - Finding dead languages ๐Ÿ’€

If your rails app grows, it is normal that localization keys are left behind, stalled. Knowing which ones are being used is hard, especially when you have edge cases, error strings, etc.

This allows you to collect all the keys being used to a redis instance.

Usage

require "e7o"

E7o.configure do |config|
    config.redis_host = "redis://PASSWORD@HOST:PORT"
    config.enabled = true
end

Installation

Add this line to your application's Gemfile:

gem 'e7o'

And then execute:

$ bundle

Or install it yourself as:

$ gem install e7o

Aknowledgements

This gem inherits a lot from i18n-counter, but because our requests were large, having one call per key lookup was too heavy, so we batched things into request sized pieces.

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.