Sha256: 843047cb1597afe161376ca1875ecf4482274486860e3b9a5ac1b6367c203c26

Contents?: true

Size: 1.45 KB

Versions: 6

Compression:

Stored size: 1.45 KB

Contents

# frozen_string_literal: true

require "rails_translation_manager"
require "climate_control"

RSpec.configure do |config|
  config.before do
    I18n.available_locales = %i[en cy]
    I18n.backend.store_translations :en, i18n: { plural: { keys: %i[one other],
                                                           rule:
                                                             lambda do |n|
                                                               n == 1 ? :one : :other
                                                             end } }
    I18n.backend.store_translations :cy, i18n: { plural: { keys: %i[zero one two few many other],
                                                           rule:
                                                             lambda do |n|
                                                               case n
                                                               when 0 then :zero
                                                               when 1 then :one
                                                               when 2 then :two
                                                               when 3 then :few
                                                               when 6 then :many
                                                               else :other
                                                               end
                                                             end } }

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_translation_manager-1.8.0 spec/spec_helper.rb
rails_translation_manager-1.7.0 spec/spec_helper.rb
rails_translation_manager-1.6.3 spec/spec_helper.rb
rails_translation_manager-1.6.2 spec/spec_helper.rb
rails_translation_manager-1.6.1 spec/spec_helper.rb
rails_translation_manager-1.6.0 spec/spec_helper.rb