Sha256: 136470c9d94f599d51b7baaa6fcf464adc8998e13853c02028f4de8b2b096ffc

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

module RailsI18n
  module Pluralization
    module Slovenian
      def self.rule
        lambda do |n|
          return :other unless n.is_a?(Numeric)

          case n % 100
          when 1 then :one
          when 2 then :two
          when 3, 4 then :few
          else :other
          end
        end
      end
    end
  end
end

{ :sl => {
    :'i18n' => {
      :plural => {
        :keys => [:one, :two, :few, :other],
        :rule => RailsI18n::Pluralization::Slovenian.rule }}}}

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rails-i18n-7.0.9/rails/pluralization/sl.rb
rails-i18n-7.0.9 rails/pluralization/sl.rb
rails-i18n-7.0.8 rails/pluralization/sl.rb
rails-i18n-7.0.7 rails/pluralization/sl.rb