Module: RailsI18n::Pluralization::Latvian

Defined in:
lib/rails_i18n/pluralization.rb

Class Method Summary collapse

Class Method Details

.ruleObject



84
85
86
87
88
89
90
91
92
# File 'lib/rails_i18n/pluralization.rb', line 84

def self.rule
  lambda do |n|
    if n.is_a?(Numeric) && n % 10 == 1 && n % 100 != 11
      :one
    else
      :other
    end
  end
end