Sha256: 47b7619e949b8c287d91726cabdfbc95f6690db50b5802ebba20df5d95a8db37

Contents?: true

Size: 525 Bytes

Versions: 4

Compression:

Stored size: 525 Bytes

Contents

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

          mod100 = n % 100

          case mod100
          when 1 then :one
          when 2 then :two
          when 3, 4 then :few
          else :other
          end
        end
      end
    end
  end
end

{ :hsb => {
    :'i18n' => {
      :plural => {
        :keys => [:one, :two, :few, :other],
        :rule => RailsI18n::Pluralization::UpperSorbian.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/hsb.rb
rails-i18n-7.0.9 rails/pluralization/hsb.rb
rails-i18n-7.0.8 rails/pluralization/hsb.rb
rails-i18n-7.0.7 rails/pluralization/hsb.rb