Module: Webmachine::Translation
- Included in:
- Webmachine, Decision::Conneg::MediaTypeList, Decision::FSM, Decision::Flow, Dispatcher::Route, MediaType
- Defined in:
- lib/webmachine/translation.rb
Overview
Provides an interface to the I18n library specifically for Webmachine‘s messages.
Instance Method Summary collapse
-
#t(key, options = {}) ⇒ String
Interpolates an internationalized string.
Instance Method Details
#t(key, options = {}) ⇒ String
Interpolates an internationalized string.
14 15 16 |
# File 'lib/webmachine/translation.rb', line 14 def t(key, ={}) ::I18n.t(key, .merge(:scope => :webmachine)) end |