Sha256: 7fd000b468cd4a47e17462d08e66bba848e14dc20140d333c72439903a6999e1

Contents?: true

Size: 420 Bytes

Versions: 20

Compression:

Stored size: 420 Bytes

Contents

module RailsI18n
  module Pluralization
    module Langi
      def self.rule
        lambda do |n|
          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

20 entries across 20 versions & 1 rubygems

Version Path
rails-i18n-4.0.3 rails/pluralization/lag.rb
rails-i18n-3.0.1 rails/pluralization/lag.rb
rails-i18n-4.0.2 rails/pluralization/lag.rb
rails-i18n-4.0.1 rails/pluralization/lag.rb
rails-i18n-3.0.0 rails/pluralization/lag.rb
rails-i18n-4.0.0 rails/pluralization/lag.rb
rails-i18n-3.0.0.pre2 rails/pluralization/lag.rb
rails-i18n-4.0.0.pre2 rails/pluralization/lag.rb
rails-i18n-4.0.0.pre rails/pluralization/lag.rb
rails-i18n-3.0.0.pre rails/pluralization/lag.rb
rails-i18n-0.7.4 rails/pluralization/lag.rb
rails-i18n-0.7.3 rails/pluralization/lag.rb
rails-i18n-0.7.2 rails/pluralization/lag.rb
rails-i18n-0.7.1 rails/pluralization/lag.rb
rails-i18n-0.7.0 rails/pluralization/lag.rb
rails-i18n-0.6.6 rails/pluralization/lag.rb
rails-i18n-0.6.5 rails/pluralization/lag.rb
rails-i18n-0.6.4 rails/pluralization/lag.rb
rails-i18n-0.6.3 rails/pluralization/lag.rb
rails-i18n-0.6.2 rails/pluralization/lag.rb