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-7.0.5 rails/pluralization/tzm.rb
rails-i18n-7.0.3 rails/pluralization/tzm.rb
rails-i18n-7.0.2 rails/pluralization/tzm.rb
rails-i18n-7.0.1 rails/pluralization/tzm.rb
rails-i18n-6.0.0 rails/pluralization/tzm.rb
rails-i18n-6.0.0.beta1 rails/pluralization/tzm.rb
rails-i18n-5.1.3 rails/pluralization/tzm.rb
rails-i18n-5.1.2 rails/pluralization/tzm.rb
rails-i18n-5.1.1 rails/pluralization/tzm.rb
rails-i18n-5.1.0 rails/pluralization/tzm.rb
rails-i18n-5.0.4 rails/pluralization/tzm.rb
rails-i18n-5.0.3 rails/pluralization/tzm.rb
rails-i18n-5.0.2 rails/pluralization/tzm.rb
rails-i18n-5.0.1 rails/pluralization/tzm.rb
rails-i18n-5.0.0 rails/pluralization/tzm.rb
rails-i18n-4.0.9 rails/pluralization/tzm.rb
rails-i18n-5.0.0.beta4 rails/pluralization/tzm.rb
rails-i18n-5.0.0.beta3 rails/pluralization/tzm.rb
rails-i18n-5.0.0.beta2 rails/pluralization/tzm.rb
rails-i18n-4.0.8 rails/pluralization/tzm.rb