Sha256: 7198deb4cb745842911d6a36a33eb7aaa29bb19bf19423ce0cb6a4b5af5c37f9
Contents?: true
Size: 643 Bytes
Versions: 11
Compression:
Stored size: 643 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 def self.rule lambda do |n| if n == 1 :one elsif n == 2 :two else :other end end end end def self.with_locale(locale) { locale => { :'i18n' => { :plural => { :keys => [:one, :two, :other], :rule => rule }}}} end end end end
Version data entries
11 entries across 11 versions & 1 rubygems