Sha256: db8dc3e93b88d6ca7ae64cb84669d73c0aa363ae6121e2d20b12c44e9453a016

Contents?: true

Size: 430 Bytes

Versions: 51

Compression:

Stored size: 430 Bytes

Contents

module RailsI18n
  module Pluralization
    module CentralMoroccoTamazight
      def self.rule
        lambda do |n|
          if ([0, 1] + (11..99).to_a).include?(n)
            :one
          else
            :other
          end
        end
      end
    end
  end
end

{ :tzm => {
    :'i18n' => {
      :plural => {
        :keys => [:one, :other],
        :rule => RailsI18n::Pluralization::CentralMoroccoTamazight.rule }}}}

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
rails-i18n-5.0.0.beta1 rails/pluralization/tzm.rb
rails-i18n-4.0.7 rails/pluralization/tzm.rb
rails-i18n-4.0.6 rails/pluralization/tzm.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rails-i18n-4.0.5/rails/pluralization/tzm.rb
rails-i18n-4.0.5 rails/pluralization/tzm.rb
rails-i18n-4.0.4 rails/pluralization/tzm.rb
rails-i18n-4.0.3 rails/pluralization/tzm.rb
rails-i18n-3.0.1 rails/pluralization/tzm.rb
rails-i18n-4.0.2 rails/pluralization/tzm.rb
rails-i18n-4.0.1 rails/pluralization/tzm.rb
rails-i18n-3.0.0 rails/pluralization/tzm.rb
rails-i18n-4.0.0 rails/pluralization/tzm.rb
rails-i18n-3.0.0.pre2 rails/pluralization/tzm.rb
rails-i18n-4.0.0.pre2 rails/pluralization/tzm.rb
rails-i18n-4.0.0.pre rails/pluralization/tzm.rb
rails-i18n-3.0.0.pre rails/pluralization/tzm.rb
rails-i18n-0.7.4 rails/pluralization/tzm.rb
rails-i18n-0.7.3 rails/pluralization/tzm.rb
rails-i18n-0.7.2 rails/pluralization/tzm.rb
rails-i18n-0.7.1 rails/pluralization/tzm.rb