Sha256: 508b2282b0ed51c2f866a7fcb49f4b4ef0ab63c0e712ceab3c59220791684aab

Contents?: true

Size: 547 Bytes

Versions: 27

Compression:

Stored size: 547 Bytes

Contents

module RailsI18n
  module Pluralization
    module UpperSorbian
      def self.rule
        lambda do |n|
          n ||= 0
          mod100 = n % 100

          if mod100 == 1
            :one
          elsif mod100 == 2
            :two
          elsif mod100 == 3 || mod100 == 4
            :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

27 entries across 27 versions & 2 rubygems

Version Path
rails-i18n-7.0.6 rails/pluralization/hsb.rb
rails-i18n-7.0.5 rails/pluralization/hsb.rb
rails-i18n-7.0.3 rails/pluralization/hsb.rb
rails-i18n-7.0.2 rails/pluralization/hsb.rb
rails-i18n-7.0.1 rails/pluralization/hsb.rb
rails-i18n-6.0.0 rails/pluralization/hsb.rb
rails-i18n-6.0.0.beta1 rails/pluralization/hsb.rb
rails-i18n-5.1.3 rails/pluralization/hsb.rb
rails-i18n-5.1.2 rails/pluralization/hsb.rb
rails-i18n-5.1.1 rails/pluralization/hsb.rb
rails-i18n-5.1.0 rails/pluralization/hsb.rb
rails-i18n-5.0.4 rails/pluralization/hsb.rb
rails-i18n-5.0.3 rails/pluralization/hsb.rb
rails-i18n-5.0.2 rails/pluralization/hsb.rb
rails-i18n-5.0.1 rails/pluralization/hsb.rb
rails-i18n-5.0.0 rails/pluralization/hsb.rb
rails-i18n-4.0.9 rails/pluralization/hsb.rb
rails-i18n-5.0.0.beta4 rails/pluralization/hsb.rb
rails-i18n-5.0.0.beta3 rails/pluralization/hsb.rb
rails-i18n-5.0.0.beta2 rails/pluralization/hsb.rb