Class: Zmeygo::I18nBackend
- Inherits:
-
Object
- Object
- Zmeygo::I18nBackend
- Defined in:
- lib/zmeygo/i18n_backend.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ I18nBackend
constructor
A new instance of I18nBackend.
- #translate(locale, key, options = {}) ⇒ Object
Constructor Details
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
6 7 8 |
# File 'lib/zmeygo/i18n_backend.rb', line 6 def client @client end |
Instance Method Details
#translate(locale, key, options = {}) ⇒ Object
15 16 17 |
# File 'lib/zmeygo/i18n_backend.rb', line 15 def translate(locale, key, = {}) client.translate(nil,locale,key) end |