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