Sha256: 58ef1340395c98653a4d97f178d0fb690fccc121bc44dc179d0dff7476e22768
Contents?: true
Size: 407 Bytes
Versions: 10
Compression:
Stored size: 407 Bytes
Contents
I18n.module_eval do class << self def translate_with_show_keys(key, options = {}) translation = translate_without_show_keys(key, options) 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
10 entries across 10 versions & 1 rubygems