Sha256: 505350d98a84cd6de5deaa71f185bf917c7815ae983f5a3c7bbe36b4b0307c91
Contents?: true
Size: 499 Bytes
Versions: 52
Compression:
Stored size: 499 Bytes
Contents
# Used in Akan, Amharic, Bihari, Filipino, guw, Hindi, Lingala, Malagasy, # Northen Sotho, Tachelhit, Tagalog, Tigrinya, Walloon. module RailsI18n module Pluralization module OneWithZeroOther def self.rule lambda { |n| n == 0 || n == 1 ? :one : :other } end def self.with_locale(locale) { locale => { :'i18n' => { :plural => { :keys => [:one, :other], :rule => rule }}}} end end end end
Version data entries
52 entries across 52 versions & 2 rubygems