Skip to content

Commit

Permalink
Add Chinese plural rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobras committed Jan 11, 2024
1 parent eef257e commit 48a4c4f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ object PluralRules {
}
}

private val Chinese = PluralRule { Other }

operator fun set(languageCode: String, value: PluralRule) {
custom[languageCode] = value
}
Expand All @@ -94,6 +96,7 @@ object PluralRules {
"cs" -> Czech
"id" -> Indonesian
"pl" -> Polish
"zh" -> Chinese
else -> custom[languageCode] ?: error("Plural rule for '$languageCode' not provided")
}
}
Expand Down

0 comments on commit 48a4c4f

Please sign in to comment.