diff --git a/components/resources/library/src/commonMain/kotlin/org/jetbrains/compose/resources/StringResources.kt b/components/resources/library/src/commonMain/kotlin/org/jetbrains/compose/resources/StringResources.kt index 6fef70e900..9e63bf4fe1 100644 --- a/components/resources/library/src/commonMain/kotlin/org/jetbrains/compose/resources/StringResources.kt +++ b/components/resources/library/src/commonMain/kotlin/org/jetbrains/compose/resources/StringResources.kt @@ -235,7 +235,8 @@ private suspend fun loadPluralString( ) val pluralCategory = pluralRuleList.getCategory(quantity) val str = item.items[pluralCategory] - ?: error("String ID=`${resource.key}` does not have the pluralization $pluralCategory for quantity $quantity!") + ?: item.items[PluralCategory.OTHER] + ?: error("Quantity string ID=`${resource.key}` does not have the pluralization $pluralCategory for quantity $quantity!") return str }