Module: Interpreter
- Defined in:
- lib/interpreter.rb,
lib/interpreter/version.rb
Defined Under Namespace
Classes: Base, Engine, Translation, TranslationsController
Constant Summary
collapse
- VERSION =
"0.0.5"
- @@backend =
nil
- @@locales =
I18n.backend.available_locales
Class Method Summary
collapse
Class Method Details
.backend=(backend) ⇒ Object
18
19
20
21
|
# File 'lib/interpreter.rb', line 18
def self.backend=(backend)
@@backend = backend
I18n.backend = I18n::Backend::Chain.new(I18n::Backend::KeyValue.new(@@backend), I18n.backend)
end
|
.locales=(locales = []) ⇒ Object
23
24
25
|
# File 'lib/interpreter.rb', line 23
def self.locales=(locales = [])
@@locales = locales
end
|
.setup {|_self| ... } ⇒ Object
14
15
16
|
# File 'lib/interpreter.rb', line 14
def self.setup
yield self
end
|