Module: RailsI18n::Pluralization::Macedonian

Defined in:
lib/rails_i18n/pluralization.rb

Class Method Summary collapse

Class Method Details

.ruleObject



96
97
98
99
100
101
102
103
104
# File 'lib/rails_i18n/pluralization.rb', line 96

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