Sha256: f1e535b7def644fcd4c34f7079b7c9d0433d029b60bd3f8bb981d367fe804a5e
Contents?: true
Size: 574 Bytes
Versions: 7
Compression:
Stored size: 574 Bytes
Contents
# Used for Cornish, Inari Sami, Inuktitut, Lule Sami, Nama, Northern Sami, # Sami Language, Skolt Sami, Southern Sami. module RailsI18n module Pluralization module OneTwoOther def self.rule lambda do |n| case n when 1 then :one when 2 then :two else :other end end end def self.with_locale(locale) { locale => { :'i18n' => { :plural => { :keys => [:one, :two, :other], :rule => rule }}}} end end end end
Version data entries
7 entries across 7 versions & 2 rubygems