ru.pocketbyte.locolaser.kotlinmpp.extension.ResMap+Extension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resource-kotlin-mpp Show documentation
Show all versions of resource-kotlin-mpp Show documentation
Implementation of platform for LocoLaser tool to work with Kotlin MPP projects.
The newest version!
package ru.pocketbyte.locolaser.kotlinmpp.extension
import ru.pocketbyte.locolaser.resource.Resources
import ru.pocketbyte.locolaser.resource.entity.ResMap
val ResMap.hasPlurals: Boolean
get() {
val locale = this[Resources.BASE_LOCALE]
if (locale != null) {
for (item in locale.values) {
if (item.isHasQuantities)
return true
}
}
return false
}