Localization

Provides the Localization singleton used by the SDAI localization layer.

Author

Dmitriy Moroz

Properties

Link copied to clipboard

Exposes the DEFAULT_LANGUAGE_CODE value used by the SDAI localization layer.

Link copied to clipboard

Exposes the entries value used by the SDAI localization layer.

Link copied to clipboard
val languageCodeFlow: StateFlow<String>

Exposes the languageCodeFlow value used by the SDAI localization layer.

Link copied to clipboard
private val languageCodeState: MutableStateFlow<String>

Exposes the languageCodeState value used by the SDAI localization layer.

Functions

Link copied to clipboard

Executes the currentLanguageCode step in the SDAI localization layer.

Link copied to clipboard
private fun String.format(args: Array<out Any?>): String

Executes the format step in the SDAI localization layer.

Link copied to clipboard

Loads SDAI data through getCountryFlagDrawableResId.

Link copied to clipboard

Executes the setLanguageCode step in the SDAI localization layer.

Link copied to clipboard
fun string(key: String, vararg args: Any?, languageCode: String = currentLanguageCode()): String

Executes the string step in the SDAI localization layer.

Link copied to clipboard
fun strings(languageCode: String = currentLanguageCode()): Map<String, String>

Executes the strings step in the SDAI localization layer.

Link copied to clipboard
private fun supportedLanguageCode(code: String?): String

Executes the supportedLanguageCode step in the SDAI localization layer.