Hello, is there a KMP way to get the size in bytes...
# multiplatform
l
Hello, is there a KMP way to get the size in bytes into a locale dependent, human readable form? For example, with
17_345L
, I'd like to get "17.35kB" in English, and "17.35ko" in French.
j
Time for some self-promotion 😏 https://github.com/jacobras/Human-Readable
👍🏼 1
kodee loving 1
amaze 1
c
Is the configured locale always global?
j
@CLOVIS yeah, it uses the Libres library, so locale is changed through its access point
LibresSettings.languageCode = "fr"
. I'd like to migrate to Compose Resources but it doesn't support programmatically changing locale yet
😕 1