Hi, how do you ship localized strings in a KMP lib...
# multiplatform
p
Hi, how do you ship localized strings in a KMP library for an existing native iOS app, without Compose resources? We are having a CMP app that uses compose resources and consumes that kmp lib. We want to distribute that lib as a static XCFramework through an SPM
binaryTarget
, built by Xcode only. We have ruled out compose resources because
getString
is
suspend
, and you can’t build a
ResourceEnvironment
for a chosen locale.
f
The only production tested I know is moko resources https://github.com/icerockdev/moko-resources
Compose resources are not meant to be used outside of compose
p
Thanks for the answer! I was hoping there might be an officially supported way to do this already, but I appreciate the clarification.