Sha256: 0fc6d760c0552a96b01842af91d0e05274f618902e8102c99392e74dff1fe689
Contents?: true
Size: 306 Bytes
Versions: 44
Compression:
Stored size: 306 Bytes
Contents
require 'i18n' I18n.config.backend.load_translations(*Dir.glob(File.expand_path("../locales/*.yml", __FILE__))) if current_locale = ENV["LANG"] I18n.config.backend.available_locales.each do |locale| if current_locale =~ /\A#{locale}/ I18n.config.locale = locale break end end end
Version data entries
44 entries across 44 versions & 1 rubygems