Module: I18n::Inflector

Defined in:
lib/i18n-inflector/inflector.rb,
lib/i18n-inflector/api.rb,
lib/i18n-inflector/hset.rb,
lib/i18n-inflector/config.rb,
lib/i18n-inflector/options.rb,
lib/i18n-inflector/version.rb,
lib/i18n-inflector/lazy_enum.rb,
lib/i18n-inflector/api_strict.rb,
lib/i18n-inflector/interpolate.rb,
lib/i18n-inflector/long_comments.rb,
lib/i18n-inflector/inflection_data.rb,
lib/i18n-inflector/inflection_data_strict.rb

Overview

This module contains inflection classes and modules for enabling the inflection support in I18n translations. It is used by the module called Backend::Inflector that overwrites the translate method from the Simple backend so it will interpolate additional inflection data present in translations.

See Also:

Version:

  • 2.6

Defined Under Namespace

Modules: Config, Interpolate Classes: API, API_Strict, Core, HSet, InflectionData, InflectionData_Strict, InflectionOptions, LazyArrayEnumerator, LazyEnumerator, LazyHashEnumerator

Constant Summary collapse

PATTERN_MARKER =
Config::Markers::PATTERN
NAMED_MARKER =
Config::Markers::STRICT_KIND
ALIAS_MARKER =
Config::Markers::ALIAS
ESCAPE =
Config::Escapes::ESCAPE
ESCAPE_R =
Config::Escapes::ESCAPE_R
ESCAPES =
Config::Escapes::PATTERN
PATTERN =
Config::PATTERN_REGEXP
TOKENS =
Config::TOKENS_REGEXP
INFLECTOR_RESERVED_KEYS =
Config::Reserved::KEYS
DEVELOPER =
'Paweł Wilk'
EMAIL =
'[email protected]'
VERSION =
'3.0.1'
NAME =
'i18n-inflector'
SUMMARY =
'Inflection module for I18n'
URL =
'https://rubygems.org/gems/i18n-inflector/'
DESCRIPTION =
'Enhances simple I18n backend in a way that it inflects translation data using pattern interpolation.'