lib/i18n/backend/key_logger.rb in i18n-coverage-0.1.1 vs lib/i18n/backend/key_logger.rb in i18n-coverage-0.2.0

- old
+ new

@@ -1,11 +1,12 @@ require 'i18n/coverage/key_logger' module I18n module Backend module KeyLogger - def translate(*args) - I18n::Coverage::KeyLogger.store_key(args[1]) + def lookup(locale, key, scope = [], options = {}) + key = (Array(scope || []) + [key]).compact.join('.') + I18n::Coverage::KeyLogger.store_key(key) super end end end end