Sha256: d6ffbab3021134a19fb51c64b96fa6432047b3f99466bdac0471f5ead27fbf7f

Contents?: true

Size: 604 Bytes

Versions: 43

Compression:

Stored size: 604 Bytes

Contents

ActiveSupport::Inflector.inflections(:es) do |inflect|
  inflect.plural(/$/, 's')
  inflect.plural(/([^aeéiou])$/i, '\1es')
  inflect.plural(/([aeiou]s)$/i, '\1')
  inflect.plural(/z$/i, 'ces')
  inflect.plural(/á([sn])$/i, 'a\1es')
  inflect.plural(/é([sn])$/i, 'e\1es')
  inflect.plural(/í([sn])$/i, 'i\1es')
  inflect.plural(/ó([sn])$/i, 'o\1es')
  inflect.plural(/ú([sn])$/i, 'u\1es')

  inflect.singular(/s$/, '')
  inflect.singular(/es$/, '')

  inflect.irregular('el', 'los')

  inflect.irregular('Galería de Inicio', 'Galería de Inicio')
  inflect.irregular('Analytics', 'Analytics')
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
adminpanel-2.6.0 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.5.5 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.5.4 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.5.3 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.5.2 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.5.1 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.5.0 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.4.3 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.4.2 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.4.1 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.4.0 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.3.1 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.3.0 config/initializers/adminpanel/pluralization_es.rb
adminpanel-2.2.5 config/initializers/pluralization_es.rb
adminpanel-2.2.4 config/initializers/pluralization_es.rb
adminpanel-2.2.3 config/initializers/pluralization_es.rb
adminpanel-2.2.2 config/initializers/pluralization_es.rb
adminpanel-2.2.1 config/initializers/pluralization_es.rb
adminpanel-2.2.0 config/initializers/pluralization_es.rb
adminpanel-2.1.7 config/initializers/pluralization_es.rb