Sha256: 2c6b8a8158a37d1ab7161fa9f4e4b39461f5b772bc3e8787a89ef12b576339d5

Contents?: true

Size: 538 Bytes

Versions: 51

Compression:

Stored size: 538 Bytes

Contents

module RailsI18n
  module Pluralization
    module Irish
      def self.rule
        lambda do |n|
          if n == 1
            :one
          elsif n == 2
            :two
          elsif (3..6).to_a.include?(n)
            :few
          elsif (7..10).to_a.include?(n)
            :many
          else
            :other
          end
        end
      end
    end
  end
end

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

Version data entries

51 entries across 51 versions & 2 rubygems

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