I was thinking of way to share localised strings a...
# multiplatform
k
I was thinking of way to share localised strings across platforms. On android, we use strings.xml which allows you to use them in both compose & xml layouts. Just curious what would happen if we replace them with kotlin objects instead. It’s a challenge for xml layouts, but for compose, you can totally use it. Moreover, we can build a shared library which will give you statically typed accessors for each key, across android, iOS and web. Has anyone tried something similar already?
d
I'm currently using https://github.com/icerockdev/moko-resources to share resources from
commonMain/resources
across both iOS and Android apps.
h
I can recommend https://lokalise.com/, have been working smoothly for us.