FIX: Use correct plural rules for Russian (#19467)

Previously this didn't work because Transifex didn't support "many".
This commit is contained in:
Gerhard Schlager
2022-12-14 18:56:46 +01:00
committed by GitHub
parent f77660b047
commit 4e42759caa
4 changed files with 13 additions and 7 deletions
@@ -171,7 +171,7 @@ RSpec.describe Admin::SiteTextsController do
context 'with language with different plural keys and missing translations' do
let(:locale) { :ru }
let(:expected_translations) { { one: '%{count} colour', few: '%{count} colours', other: '%{count} colours' } }
let(:expected_translations) { { one: '%{count} colour', few: '%{count} colours', many: '%{count} colours', other: '%{count} colours' } }
include_examples 'finds correct plural keys'
end
@@ -182,7 +182,7 @@ RSpec.describe Admin::SiteTextsController do
end
let(:locale) { :ru }
let(:expected_translations) { { one: '%{count} colour', few: '%{count} цвета', other: '%{count} colours' } }
let(:expected_translations) { { one: '%{count} colour', few: '%{count} цвета', many: '%{count} цветов', other: '%{count} colours' } }
include_examples 'finds correct plural keys'
end
@@ -195,7 +195,7 @@ RSpec.describe Admin::SiteTextsController do
end
let(:locale) { :ru }
let(:expected_translations) { { one: 'ONE', few: 'FEW', other: '%{count} colours' } }
let(:expected_translations) { { one: 'ONE', few: 'FEW', many: '%{count} цветов', other: '%{count} colours' } }
let(:expected_overridden) { { one: true, few: true } }
include_examples 'finds correct plural keys'