And here is the used way to get the formatted string:
Copy code
MR.strings.login_succeed.format(arg).toString()
I noticed that when I use the above code on the Android side it gives me another form of
toString()
that accept the context as parameter, can I use the same function in the shared code?
a
alex009
03/27/2023, 3:48 PM
you can't get localized text in shared code - android require context to get String.
only in compose multiplatform you can get localized string inside @Composable