Sha256: 02592258582530c014d0b217e548cc577dfa4de22cb45a1491e1765ef234fad7
Contents?: true
Size: 536 Bytes
Versions: 25
Compression:
Stored size: 536 Bytes
Contents
# Used for Moldavian, Romanian. module RailsI18n module Pluralization module Romanian def self.rule lambda do |n| if n == 1 :one elsif n == 0 || (1..19).to_a.include?(n % 100) :few else :other end end end def self.with_locale(locale) { locale => { :'i18n' => { :plural => { :keys => [:one, :few, :other], :rule => rule }}}} end end end end
Version data entries
25 entries across 25 versions & 1 rubygems