Sha256: 9e825f49f9b48b3efb37a486415a72037d77135f2dacb0c44a28cf0672126a4b
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
# frozen_string_literal: true module Localer module Rails # :nodoc: class << self def connect! require File.expand_path("config/environment", Localer.config.app_path) true rescue LoadError false end def translations return {} unless connect! I18n.backend.send(:init_translations) I18n.backend.send(:translations) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
localer-0.1.1 | lib/localer/rails.rb |
localer-0.1.0 | lib/localer/rails.rb |