stringResource

@Composable
actual fun stringResource(dsStrings: DsStrings): String

Composable function to load a localized string synchronously.


@Composable
actual fun stringResource(dsStrings: DsStrings, vararg formatArgs: Any): String

Composable function to load a localized string synchronously and format it with arguments.

@Composable
expect fun stringResource(dsStrings: DsStrings): String

Composable function to load a localized string synchronously.


@Composable
expect fun stringResource(dsStrings: DsStrings, vararg formatArgs: Any): String

Composable function to load a localized string synchronously and format it with arguments.

Loads a localized string synchronously from the design system bundle using the specified key.

Return

The resolved localized string.

Parameters

key

The translation key defined in the localized string tables.


fun stringResource(key: String, vararg formatArgs: Any): String

Loads a localized string synchronously from the design system bundle using the specified key and formats it with the provided arguments.

Return

The resolved and formatted localized string.

Parameters

key

The translation key defined in the localized string tables.

formatArgs

The formatting arguments to apply.


actual fun stringResource(dsStrings: DsStrings): String

Composable function to load a localized string synchronously.


actual fun stringResource(dsStrings: DsStrings, vararg formatArgs: Any): String

Composable function to load a localized string synchronously and format it with arguments.