openpss / com.hendraanggrian.openpss.content / Language

Language

enum class Language

Enum Values

EN_US

ID_ID

Properties

code

val code: String

Reverse the damage done in Locale.convertOldISOCodes.

fullCode

val fullCode: String

Functions

toLocale

fun toLocale(): Locale

toResourcesBundle

fun toResourcesBundle(): ResourceBundle

toString

fun toString(showCurrency: Boolean = false): String

Companion Object Functions

ofCode

fun ofCode(code: String): Language

ofFullCode

fun ofFullCode(fullCode: String): Language

ofServer

fun ofServer(): Language

Extension Properties

id

val Enum<*>.id: String

This id will be used as NoSQL json key.