Sha256: 92e12a223f59980df19c5fd5bc85df530d28859115bd82637877af89fa14622d

Contents?: true

Size: 732 Bytes

Versions: 53

Compression:

Stored size: 732 Bytes

Contents

{ :lv => { :i18n => { :plural => { :keys => [:zero, :one, :other], :rule => lambda { |n| n = n.respond_to?(:abs) ? n.abs : ((m = n.to_s)[0] == "-" ? m[1,m.length] : m); (n.to_f % 10 == 0 || (((n.to_f % 100) % 1).zero? && (11..19).include?(n.to_f % 100)) || (((v = n.to_s.split(".")[1]) ? v.length : 0) == 2 && (11..19).include?(((f = n.to_s.split(".")[1]) ? f.to_i : 0) % 100))) ? :zero : ((n.to_f % 10 == 1 && n.to_f % 100 != 11) || (((v = n.to_s.split(".")[1]) ? v.length : 0) == 2 && ((f = n.to_s.split(".")[1]) ? f.to_i : 0) % 10 == 1 && ((f = n.to_s.split(".")[1]) ? f.to_i : 0) % 100 != 11) || (((v = n.to_s.split(".")[1]) ? v.length : 0) != 2 && ((f = n.to_s.split(".")[1]) ? f.to_i : 0) % 10 == 1)) ? :one : :other } } } } }

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
worldwide-0.6.5 data/cldr/locales/lv/plurals.rb
worldwide-0.6.4 data/cldr/locales/lv/plurals.rb
worldwide-0.6.3 data/cldr/locales/lv/plurals.rb
worldwide-0.6.2 data/cldr/locales/lv/plurals.rb
worldwide-0.6.1 data/cldr/locales/lv/plurals.rb
worldwide-0.6.0 data/cldr/locales/lv/plurals.rb
worldwide-0.5.1 data/cldr/locales/lv/plurals.rb
worldwide-0.5.0 data/cldr/locales/lv/plurals.rb
worldwide-0.4.1 data/cldr/locales/lv/plurals.rb
worldwide-0.4.0 data/cldr/locales/lv/plurals.rb
worldwide-0.3.0 data/cldr/locales/lv/plurals.rb
worldwide-0.2.0 data/cldr/locales/lv/plurals.rb
worldwide-0.1.1 data/cldr/locales/lv/plurals.rb