Sha256: 4cf8d38d6971885c0129bae8735d6af448aaa4067c17921d77f559711f4bc2bc

Contents?: true

Size: 438 Bytes

Versions: 26

Compression:

Stored size: 438 Bytes

Contents

module RailsI18n
  module Pluralization
    module Langi
      def self.rule
        lambda do |n|
          n ||= 0
          if n == 0
            :zero
          elsif n > 0 && n < 2
            :one
          else
            :other
          end
        end
      end
    end
  end
end

{ :lag => {
    :'i18n' => {
      :plural => {
        :keys => [:zero, :one, :other],
        :rule => RailsI18n::Pluralization::Langi.rule }}}}

Version data entries

26 entries across 26 versions & 2 rubygems

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