Package-level declarations

Functions

Link copied to clipboard

Sets the locale configuration for the builder and returns the instance for further customization.

Link copied to clipboard
fun pluralStringResource(@PluralsRes id: Int, quantity: Int, vararg formatArgs: Any): String
fun pluralStringResource(tolgee: Tolgee, @PluralsRes id: Int, quantity: Int, vararg formatArgs: Any): String
fun pluralStringResource(resource: PluralStringResource, quantity: Int): String
fun pluralStringResource(tolgee: Tolgee, resource: PluralStringResource, quantity: Int): String
fun pluralStringResource(resource: PluralStringResource, quantity: Int, vararg formatArgs: Any): String
fun pluralStringResource(tolgee: Tolgee, resource: PluralStringResource, quantity: Int, vararg formatArgs: Any): String
Link copied to clipboard
fun Tolgee.setLocale(composeLocale: Locale): Locale

Sets the current locale for the Tolgee instance, updating it in the reactive locale flow.

Link copied to clipboard
fun stringArrayResource(resource: StringArrayResource): List<String>
fun stringArrayResource(tolgee: Tolgee, resource: StringArrayResource): List<String>
Link copied to clipboard

Returns a localized string from the given resource ID.

Retrieves a localized string resource based on the provided resource ID using Tolgee for translations. If a translation is available from Tolgee, it is used; otherwise, the default string resource is returned.

fun stringResource(@StringRes id: Int, vararg formatArgs: Any): String

Retrieves a localized string resource. If a Tolgee instance is available, it uses it to fetch the translated string; otherwise, falls back to the default Compose string resource.

fun stringResource(tolgee: Tolgee, @StringRes id: Int, vararg formatArgs: Any): String

Retrieves a string resource based on the given parameters, supporting dynamic translation with Tolgee integration.

fun stringResource(key: String, default: String?, table: String? = null): String

Retrieves a localized string based on the provided key, default value, and optional table name.

fun stringResource(tolgee: <Error class: unknown class>, key: String, default: String?, table: String? = null): String

Provides a localized string based on the given key and optional default, using the specified Tolgee instance.

fun stringResource(key: String, default: String?, table: String? = null, vararg args: Any): String

Retrieves a localized and formatted string based on the specified key, default value, table, and arguments. The method ensures the use of a Tolgee instance if available, otherwise falls back to bundle-based localization.

fun stringResource(tolgee: <Error class: unknown class>, key: String, default: String?, table: String? = null, vararg args: Any): String

Retrieves a localized string resource using the provided translation key, default value, optional table, and optional arguments. The translation is fetched from the specified Tolgee instance and updates dynamically using a state-based approach.

fun stringResource(resource: StringResource): String

Returns a localized string for the given string resource.

fun stringResource(tolgee: Tolgee, resource: StringResource): String

Retrieves a localized string resource using the provided Tolgee translation library and resource key.

fun stringResource(resource: StringResource, vararg formatArgs: Any): String

Provides a localized string for the given resource and format arguments.

fun stringResource(tolgee: Tolgee, resource: StringResource, vararg formatArgs: Any): String

Composable function to retrieve a localized string resource using Tolgee.