Method: I18n::Inflector::InflectionOptions#aliased_patterns

Defined in:
lib/i18n-inflector/options.rb

#aliased_patternsBoolean

Note:

Local option :inflector_aliased_patterns passed to the Backend::Inflector#translate overrides this setting.

This is a switch that enables you to use aliases in patterns. When it’s enabled then aliases may be used in inflection patterns, not only true tokens. This operation may make your translation data a bit messy if you’re not alert. That’s why this switch is by default set to false.

Parameters:

  • state (Boolean)

    true enables, false disables this switch

Returns:

  • (Boolean)

    state of the switch


106
107
108
# File 'lib/i18n-inflector/options.rb', line 106

def aliased_patterns
  @aliased_patterns
end