Skip to content

Commit

Permalink
fix(shared): use type array for plurals strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Jan 2, 2024
1 parent 1138313 commit 5211180
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ actual class Platform actual constructor(private val context: PlatformContext) {
val resourceId =
androidContext.resources.getIdentifier(key, "plurals", androidContext.packageName)
if (resourceId == 0) return key
return androidContext.resources.getQuantityString(resourceId, count, args)
return androidContext.resources.getQuantityString(resourceId, count, *args.toTypedArray())
}

actual fun getString(key: String, args: List<Any>): String {
Expand Down

0 comments on commit 5211180

Please sign in to comment.