If you use this approach to handle localization you can do it:
https://github.com/adrielcafe/lyricist
interface StringResource { val test: AnnotatedString }
object EnStringResource { override val test... }
And provide the correct resource using composition locals depending on the language.