module RailsI18n::Pluralization::WestSlavic
Public Class Methods
rule()
click to toggle source
# File lib/rails_i18n/common_pluralizations/west_slavic.rb, line 6 def self.rule lambda do |n| if n == 1 :one elsif [2, 3, 4].include?(n) :few else :other end end end
with_locale(locale)
click to toggle source
# File lib/rails_i18n/common_pluralizations/west_slavic.rb, line 18 def self.with_locale(locale) { locale => { :'i18n' => { :plural => { :keys => [:one, :few, :other], :rule => rule }}}} end