# Used for French, Fulah, Kabyle. module RailsI18n module Pluralization module OneUptoTwoOther def self.rule lambda { |n| (0...2).cover?(n) ? :one : :other } end def self.with_locale(locale) { locale => { :'i18n' => { :plural => { :keys => [:one, :other], :rule => rule }}}} end end end end