https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
y

Yevhen Tienkaiev

09/01/2022, 1:05 PM
Hello, how to handle translation like in android trough
R
? Example:
Copy code
R.string.button_test
l

Landry Norris

09/01/2022, 1:15 PM
Currently, there is no support for Android resources in iOS. You should use a KMM solution like moko-resources for translation and i18n.
Same for drawables. You won’t have access to R.drawable, but you can convert svg to a compose Icon. I would recommend using the SVG to Compose IDE plugin and creating an icons folder if you need any drawables.
y

Yevhen Tienkaiev

09/01/2022, 2:12 PM
Thank you!
7 Views