tFlow

fun tFlow(key: String, default: String?, table: String? = null): Flow<String>(source)

Provides a flow of localized strings based on the given key, default value, and optional table name.

The translation process considers the current locale and emits updates as the locale or translated strings change.

Return

A flow that emits localized strings corresponding to the given key.

Parameters

key

The key used to fetch the localized string.

default

The default string to use if no translation is found, or null if no default is provided.

table

The name of the table where the key is searched for, or null to use the default table.


fun tFlow(key: String, default: String?, table: String? = null, vararg args: Any): Flow<String>(source)

Provides a flow of localized string representations for a given key, allowing localization updates based on dynamic arguments and optional table-specific localization contexts.

The method emits localized strings based on the provided key and optional arguments. It handles both initial translation retrieval and updates when localization parameters or configurations change.

Return

A flow that emits localized and formatted string values corresponding to the given key and arguments.

Parameters

key

The key representing the string to be localized.

default

An optional default string to use if no localization is found for the specified key.

table

An optional table or namespace for scoping the localization lookup.

args

A variable number of arguments for formatting the localized string.