Method: I18n::Inflector::InflectionOptions#interpolate_symbols
- Defined in:
- lib/i18n-inflector/options.rb
permalink #interpolate_symbols ⇒ Boolean
Note:
Local option :inflector_interpolate_symbols
passed to the Backend::Inflector#translate overrides this setting.
This is a switch that enables interpolation of symbols. Whenever interpolation method will receive a collection of symbols as a result of calling underlying translation method it won’t process them, returning as they are, unless this switch is enabled.
Note that using symbols as values in translation data creates I18n aliases. This option is intended to work with arrays of symbols or hashes with symbols as values, if the original translation method returns such structures.
This switch is by default set to false
.
143 144 145 |
# File 'lib/i18n-inflector/options.rb', line 143 def interpolate_symbols @interpolate_symbols end |