Sha256: e7f31e35fa5de7b523a5af9f97d946f060a79daff4bfbddbca9d29f504d7e44c

Contents?: true

Size: 531 Bytes

Versions: 51

Compression:

Stored size: 531 Bytes

Contents

module RailsI18n
  module Pluralization
    module ScottishGaelic
      def self.rule
        lambda do |n|
          if n == 1 || n == 11
            :one
          elsif n == 2 || n == 12
            :two
          elsif ((3..10).to_a + (13..19).to_a).include?(n)
            :few
          else
            :other
          end
        end
      end
    end
  end
end

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

Version data entries

51 entries across 51 versions & 2 rubygems

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