Hi everyone, i would like to ...
# multiplatform
f
Hi everyone, i would like to generate a list of month names in my View Model in the shared project. I used kotlinx-datetime but this library only support english. I tried Klock but brake the build in iOS. Does a alternative exist for this kind of need or i need to fill the list in the androidapp and ios app ? thanks you !
k
I suggest your business layer (viewmodel) emits a semantic value. The kotlinx datetime month enum would be good for this. In your view layer you can then map that to a locale sensitive string.
f
It was my Plan B but i think I will go with your idea 🙂 Thanks Kevin !