getFormattedString
fun getFormattedString(@StringRes formatResId: Int, vararg args: Any?, locale: Locale? = null): String
Returns a localized string obtained by substituting the specified arguments.
Return
Localized string.
Parameters
formatResId
String resource ID.
args
The arguments.
locale
Locale which will be used to retrieve resource.