jvmMain.dev.icerock.moko.resources.desc.PluralFormattedStringDesc.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resources-jvm Show documentation
Show all versions of resources-jvm Show documentation
Resources access for Kotlin Multiplatform development (mobile first)
The newest version!
/*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.resources.desc
import dev.icerock.moko.resources.PluralsResource
actual data class PluralFormattedStringDesc actual constructor(
val pluralsRes: PluralsResource,
val number: Int,
val args: List
) : StringDesc {
override fun localized() = pluralsRes.localized(
locale = StringDesc.localeType.currentLocale,
quantity = number,
*(args.toTypedArray())
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy