Sha256: db3afecb6647369085a348195c4433e6bc18891528d6f39bd6f670bc7552276e
Contents?: true
Size: 465 Bytes
Versions: 43
Compression:
Stored size: 465 Bytes
Contents
I18n.module_eval do class << self def translate_with_show_keys(key, options = {}) translation = translate_without_show_keys(key, options) return translation unless translation.is_a?(String) keys = normalize_keys(locale, key, options[:scope]).join('.') "[#{keys}]" + translation end alias_method_chain :translate, :show_keys alias_method :t_without_show_keys, :t alias_method :t, :translate_with_show_keys end end
Version data entries
43 entries across 43 versions & 1 rubygems