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-5.0.0.beta1 rails/pluralization/gd.rb
rails-i18n-4.0.7 rails/pluralization/gd.rb
rails-i18n-4.0.6 rails/pluralization/gd.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rails-i18n-4.0.5/rails/pluralization/gd.rb
rails-i18n-4.0.5 rails/pluralization/gd.rb
rails-i18n-4.0.4 rails/pluralization/gd.rb
rails-i18n-4.0.3 rails/pluralization/gd.rb
rails-i18n-3.0.1 rails/pluralization/gd.rb
rails-i18n-4.0.2 rails/pluralization/gd.rb
rails-i18n-4.0.1 rails/pluralization/gd.rb
rails-i18n-3.0.0 rails/pluralization/gd.rb
rails-i18n-4.0.0 rails/pluralization/gd.rb
rails-i18n-3.0.0.pre2 rails/pluralization/gd.rb
rails-i18n-4.0.0.pre2 rails/pluralization/gd.rb
rails-i18n-4.0.0.pre rails/pluralization/gd.rb
rails-i18n-3.0.0.pre rails/pluralization/gd.rb
rails-i18n-0.7.4 rails/pluralization/gd.rb
rails-i18n-0.7.3 rails/pluralization/gd.rb
rails-i18n-0.7.2 rails/pluralization/gd.rb
rails-i18n-0.7.1 rails/pluralization/gd.rb