# File lib/i18n/exceptions.rb, line 30 def initialize(locale, key, opts = nil) @key, @locale, @options = key, locale, opts.dup || {} options.each { |k, v| options[k] = v.inspect if v.is_a?(Proc) } keys = I18n.normalize_keys(locale, key, options[:scope]) keys << 'no key' if keys.size < 2 super "translation missing: #{keys.join(', ')}" end