Sha256: 8946d519129842a3120c01b3a6d24fe1d037492bc05fabacc14a7a36a48267f4
Contents?: true
Size: 564 Bytes
Versions: 34
Compression:
Stored size: 564 Bytes
Contents
module ZendeskAppsSupport module I18n class << self def t(key, *args) i18n.t(key, *args) end def set_locale(locale) i18n.locale = locale end private def i18n @i18n ||= begin require 'i18n' ::I18n.load_path += locale_files ::I18n end end def locale_files Dir[ File.expand_path('../../../config/locales/*.yml', __FILE__) ] - Dir[ File.expand_path('../../../config/locales/*.zendesk.yml', __FILE__) ] end end end end
Version data entries
34 entries across 34 versions & 1 rubygems