All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.dev.icerock.moko.resources.desc.PluralFormattedStringDesc.kt Maven / Gradle / Ivy

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