getDisplayLabel

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

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

Return

the label / name of the claim in the desired language. If the languageKey is not available, the path (see CredentialMetadata) of the Claim is returned. If the path is also not available, an empty String 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.