Skip to content

Commit

Permalink
Merge pull request #23 from nehmeroumani/patch-2
Browse files Browse the repository at this point in the history
Add the missing "Zero" case
  • Loading branch information
deankarn authored Aug 8, 2021
2 parents f87b140 + b86d94d commit 8f5c8e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions import_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ func (t *UniversalTranslator) ImportByReader(format ImportExportFormat, reader i
func stringToPR(s string) locales.PluralRule {

switch s {
case "Zero":
return locales.PluralRuleZero
case "One":
return locales.PluralRuleOne
case "Two":
Expand Down

0 comments on commit 8f5c8e8

Please sign in to comment.