Sha256: cc7a18183181acaee9615c404628ce50bba1cc9d09555741c50a1e8eb48b9cc8
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 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('Google Analytics', 'Google Analytics') end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-2.1.2 | config/initializers/pluralization_es.rb |
adminpanel-2.1.1 | config/initializers/pluralization_es.rb |
adminpanel-2.1.0 | config/initializers/pluralization_es.rb |