Sha256: 34391b80e6d6974d9d7e103a945e36c11495c850bf880bb836913357e52b4538
Contents?: true
Size: 486 Bytes
Versions: 53
Compression:
Stored size: 486 Bytes
Contents
{ :fil => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda { |n| n = n.respond_to?(:abs) ? n.abs : ((m = n.to_s)[0] == "-" ? m[1,m.length] : m); ((((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && [1, 2, 3].include?(n.to_i)) || (((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && ![4, 6, 9].include?(n.to_i % 10)) || (((v = n.to_s.split(".")[1]) ? v.length : 0) != 0 && ![4, 6, 9].include?(((f = n.to_s.split(".")[1]) ? f.to_i : 0) % 10))) ? :one : :other } } } } }
Version data entries
53 entries across 53 versions & 1 rubygems