Hello, :point_right: Our new version of the Gradle...
# multiplatform
n
Hello, 👉 Our new version of the Gradle plugin for easy Compose Multiplatform localization now supports string templates, plurals, and arrays across all platforms (web, desktop, iOS, and Android). 🚀 Feel free to check it out and contribute. Happy coding! 🎉 K https://github.com/hyperether/compose-multiplatform-localize
K 3
❤️ 1
z
Hi! I'm curious, what problems with Compose resources does this plugin solve? Is the main feature that you have accessors to load the strings outside of a Compose context as well? (It might also be worth adding the answer to this question to its README and such)
👆 3
n
Hi! Yes, features are that you can access outside of compose context, easy make dropdown selector for language or similar as there is access to list of all supported languages by app, there is no need to write any expect/actual for in app language changing. Thanks, i will put benefits of using plugin in README.
h
CMP resources can be accessed outside of Compose context too FYI, I already use that without your plug-in, so not sure what problem it really solves 🤔
z
Indeed, as long as you can get into a coroutine, you can load Compose Resources as well. We just don't really recommend using them for non-Compose projects because the primary focus is of course on CMP. And yes, you do need to write some custom code for in-app switchers, but this is in the documentation and not that complex.
1
n
Documentation tells it is still workaround until common API is provided so i think our plugin is still ok for someone who wants to use common code.
t
Generic issue for KMP resources support: KT-63189 Multiplatform resources