Module: Coverband::Collectors::I18n::KeyRegistry

Defined in:
lib/coverband/collectors/translation_tracker.rb

Instance Method Summary collapse

Instance Method Details

#lookup(locale, key, scope = [], options = {}) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/coverband/collectors/translation_tracker.rb', line 10

def lookup(locale, key, scope = [], options = {})
  separator = options[:separator] || ::I18n.default_separator
  flat_key = ::I18n.normalize_keys(locale, key, scope, separator).join(separator)
  Coverband.configuration.translations_tracker.track_key(flat_key)

  super
end