bcp47LanguageTag

fun bcp47LanguageTag(languageCode: String, countryCode: String): String?

Provides BCP 47 formatted language tag based on languageCode and countryCode. Example: "en-US".

Return

BCP 47 formatted language tag.

Parameters

languageCode

Two-letter (ISO 639-1) or three-letter (ISO 639-3) language code.

countryCode

Two-letter (ISO 3166-1 alpha-2 ) or three-letter (ISO 3166-1 alpha-3) country code.