Sha256: 5c01e0e20e0634f097c8024a34626671c0a25b371cf77a0a73bda1399643294d
Contents?: true
Size: 390 Bytes
Versions: 7
Compression:
Stored size: 390 Bytes
Contents
# Used as "default" pluralization rule module RailsI18n module Pluralization module OneOther def self.rule lambda { |n| 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
7 entries across 7 versions & 2 rubygems