Hello guys, how to read strings, dimens resources in a KMM compose project
b
Hello guys, how to read strings, dimens resources in a KMM compose project
s
For strings and internationalisation, lyricist is good. https://github.com/adrielcafe/lyricist For dimens and colors you can define them in a data class similar to how Material does it. For icons you can use
ImageVectors
or use compose resources package if you want to read vector drawables in Compose multiplatform. Moko resources is good, but it currently has a issue which is causing problems with Kotlin 1.9.0, so keep that in mind.
b
thank you guys
@chr when using moko, how to specify that a value is not translatable ? i have for example
<string name="app_name" translatable="false">My Super App</string>
however it is not working when compiling. I am getting the error
MissingTranslation
s