Sha256: d5c39a6e0241d97430a65d0b71078e8a46463c03e02ba5ed4cabf811b92e2aec
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 Bytes
Contents
module Riddick module Backends # Wrapper aroud I18n::Backend::Simple. class Simple attr_reader :i18n_backend def initialize(i18n_backend) @i18n_backend = i18n_backend end # Calculate and return the default translations as a hash of type: # {'en.foo.bar' => 'baz!'} def translations @i18n_backend.send(:translations)[I18n.locale].riddick_normalize_i18n I18n.locale end # Ensure the translations are loaded. def init_translations @i18n_backend.send :init_translations end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riddick-0.0.4 | lib/riddick/backends/simple.rb |
riddick-0.0.3 | lib/riddick/backends/simple.rb |