Skip to content

Commit

Permalink
Merge pull request #49 from alphagov/add-welsh-plurals
Browse files Browse the repository at this point in the history
Add plurals dropped from rails-i18n in 7.0.6
  • Loading branch information
chao-xian authored Nov 16, 2022
2 parents b1b8a3b + 6a7d153 commit 5431893
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/locales/plurals.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# frozen_string_literal: true

{
# Welsh
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 } } },
# 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
Expand Down

0 comments on commit 5431893

Please sign in to comment.