getDisplayLabel

fun getDisplayLabel(languageKey: String, fallbackLanguageKey: String = "en"): String

A helper function to get an Attestation's label / name in a specific language.

Return

the label / name of the Attestation in the desired language. If the languageKey is not available, the type of the attestation is returned.

Parameters

languageKey

the ISO 631-1 2-digit language code of the desired language the label should be in.

fallbackLanguageKey

the ISO 631-1 2-digit language code of the fallback language the label should be in if the languageKey is not available.