Skip to content

Commit

Permalink
fix for sv and sv-SE pluralization
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Mar 20, 2020
1 parent 6a31db6 commit a77dfcf
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/locales/utils/p11n.rb
Expand Up @@ -60,14 +60,15 @@
# The default pluralization for locales not explicitly listed here
# is the :one_other pluralization proc (used for English)
plurals = Hash.new(p11n[:one_other]).tap do |hash|
hash['id'] = p11n[:other]
hash['fr'] = p11n[:one_upto_two_other]
hash['ja'] = p11n[:other]
hash['ko'] = p11n[:other]
hash['pl'] = p11n[:polish]
hash['ru'] = p11n[:east_slavic]
hash['se'] = p11n[:one_two_other]
hash['tr'] = p11n[:other]
hash['id'] = p11n[:other]
hash['fr'] = p11n[:one_upto_two_other]
hash['ja'] = p11n[:other]
hash['ko'] = p11n[:other]
hash['pl'] = p11n[:polish]
hash['ru'] = p11n[:east_slavic]
hash['sv'] = p11n[:one_two_other]
hash['sv-SE'] = p11n[:one_two_other]
hash['tr'] = p11n[:other]
hash['zh-CN'] = p11n[:other]
hash['zh-HK'] = p11n[:other]
hash['zh-TW'] = p11n[:other]
Expand Down

0 comments on commit a77dfcf

Please sign in to comment.