Companion

Contains utility methods for fetching localized strings from the main resource bundle or a fallback base resource bundle.

Functions

Link copied to clipboard
fun getLocalizedStringFromBundle(res: String?, key: String, default: String?, table: String?): String?

Retrieves a localized string for a given key from the main application bundle or a base resource bundle. If the localized string is not found, the method returns a default string or null.

Link copied to clipboard
fun getLocalizedStringFromBundleFormatted(res: String?, key: String, default: String?, table: String?, vararg args: Any): String?

Retrieves a localized and formatted string from a specified bundle. Uses the provided key, default value, table, and any additional arguments for string formatting. If no localized string is found, it falls back to the default value.