Skip to content

Commit 0b826a6

Browse files
committed
Add plural rules missing from i18n
1 parent 6942d68 commit 0b826a6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

config/locales/plurals.rb

+20
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
11
{
22
# Dari - this isn't an iso code. Probably should be 'prs' as per ISO 639-3.
33
dr: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
4+
# Latin America and Caribbean Spanish
5+
"es-419": { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
6+
# Scottish Gaelic
7+
gd: { i18n: { plural: { keys: %i[one two few other],
8+
rule:
9+
lambda do |n|
10+
if [1, 11].include?(n)
11+
:one
12+
elsif [2, 12].include?(n)
13+
:two
14+
elsif [3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 18, 19].include?(n)
15+
:few
16+
else
17+
:other
18+
end
19+
end } } },
420
# Armenian
521
hy: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
22+
# Kazakh
23+
kk: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
24+
# Punjabi Shahmukhi
25+
"pa-pk": { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
626
# Sinhalese
727
si: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
828
# Uzbek

0 commit comments

Comments
 (0)