LanguageMetadata

data class LanguageMetadata(val languageName: String, val nativeName: String, val IETF_tag: String, val ISO_639_1: String, val ISO_639_2_B: String, val ISO_639_3: String, val openSubtitles: String)(source)

Represents one language with english name, native name and codes. IETF BCP 47 conformant tag shall be used as the first choice for language code!

See locales on: https://github.com/unicode-org/cldr-json/blob/main/cldr-json/cldr-core/availableLocales.json https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry https://android.googlesource.com/platform/frameworks/base/+/android-16.0.0_r2/core/res/res/values/locale_config.xml https://iso639-3.sil.org/code_tables/639/data/all

Constructors

Link copied to clipboard
constructor(languageName: String, nativeName: String, IETF_tag: String, ISO_639_1: String, ISO_639_2_B: String, ISO_639_3: String, openSubtitles: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun localizedName(localizedTo: String? = null): String
Link copied to clipboard
fun nameNextToFlagEmoji(localizedTo: String? = null): String