diff --git a/Gemfile.lock b/Gemfile.lock index 7aec7df51..b5dc1a5c4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -114,7 +114,7 @@ GEM globalid (0.4.2) activesupport (>= 4.2.0) govuk_ab_testing (2.4.2) - govuk_app_config (2.8.4) + govuk_app_config (2.9.1) logstasher (>= 1.2.2, < 2.2.0) sentry-raven (~> 3.1.1) statsd-ruby (~> 1.5.0) diff --git a/config/locales/plurals.rb b/config/locales/plurals.rb index 2f0389f13..e69a1fcfd 100644 --- a/config/locales/plurals.rb +++ b/config/locales/plurals.rb @@ -1,34 +1 @@ -{ - # Dari - this isn't an iso code. Probably should be 'prs' as per ISO 639-3. - dr: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } }, - # Latin America and Caribbean Spanish - "es-419": { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } }, - # Scottish Gaelic - gd: { i18n: { plural: { keys: %i[one two few other], - rule: - lambda do |n| - if [1, 11].include?(n) - :one - elsif [2, 12].include?(n) - :two - elsif [3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 18, 19].include?(n) - :few - else - :other - end - end } } }, - # Armenian - hy: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } }, - # Kazakh - kk: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } }, - # Punjabi Shahmukhi - "pa-pk": { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } }, - # Sinhalese - si: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } }, - # Uzbek - uz: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } }, - # Chinese Hong Kong - "zh-hk" => { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } }, - # Chinese Taiwan - "zh-tw" => { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } }, -} +GovukI18n.plurals