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-0.7.0 rails/pluralization/ga.rb
rails-i18n-0.6.6 rails/pluralization/ga.rb
rails-i18n-0.6.5 rails/pluralization/ga.rb
rails-i18n-0.6.4 rails/pluralization/ga.rb
rails-i18n-0.6.3 rails/pluralization/ga.rb
rails-i18n-0.6.2 rails/pluralization/ga.rb
rails-i18n-0.6.1 rails/pluralization/ga.rb
rails-i18n-0.6.0.beta1 rails/pluralization/ga.rb
rails-i18n-0.5.2 rails/pluralization/ga.rb
rails-i18n-0.5.1 rails/pluralization/ga.rb
rails-i18n-0.5.0.beta1 rails/pluralization/ga.rb