:rocket: Just released a Gradle plugin for easy lo...
# feed
n
๐Ÿš€ Just released a Gradle plugin for easy localization in Compose Multiplatform apps! Support for Android, iOS, Desktop, and Web. ๐Ÿ‘‰ Check it out here: https://medium.com/@nikola.hadzic.n/compose-multiplatform-localization-plugin-simplified-multilingual-support-57682d0d10c8 ๐Ÿ‘‰ Or here on Github: https://github.com/hyperether/compose-multiplatform-localize Would love your feedback. Also, feel free to contribute or share!
๐Ÿ‘ 9
m
What's the difference from compose multiplatform resources? ๐Ÿค”
n
You can change languages dynamically by changing one global state. Everything is generated from different values folders.
m
thank You! ๐Ÿ™Œ
n
You are welcome. If you need extra functionalities feel free to make an issue on github :)
m
I feel like the one of pain points from compose resources is that it lacks support in IDE's. So when I shift click on a resource it takes me to generated class and not to the XML file. Not sure if this can be solved without IDE plugin but I would switch to Your library instantly if You support that
โž• 2
n
Great idea! I will see what i can do and is i possible with gradle or IDE plugin. Thanks!
๐Ÿ™Œ 1
f
Nice, GJ. I am missing multiplatform resources in Kotlin/JS so I'll have a look at this
๐Ÿ™Œ 1
d
Thanks for releasing this! I donโ€™t see a LICENSE file in your GitHub repo. Are you planning to add a license? If so, which license?
โž• 1
n
@Deepak Nulu Thanks for reminder, i separated projects for plugin and demo app an licence was in project folders instead of root repo. Done. It is Apache Licence.
๐Ÿ™ 1
As @Mikolaj suggested, I published IDE plugin for ctrl or command click to lead to actual row in string file instead of generated class. You can find it here https://plugins.jetbrains.com/plugin/27348-resource-locator , or search for it in marketplace of IDE plugins in android studio "Resource-Locator". For now it works only with strings but in future versions all resources will be supported. Also it is not compatibile with K2 but it will be in next version. Thanks to all for commenting and checking out our plugins :D
๐Ÿ™Œ 1
m
Nice! this is great!!
๐Ÿฆœ