Has anyone worked out a nice pattern for localizin...
# compose
z
Has anyone worked out a nice pattern for localizing strings?
v
the current approach relies on the existing localization setup i.e storing them in xml. If you are asking about a pure Kotlin way to do it in this compose first world, there have been discussions in the past about it but doesn’t seem like this was a top priority for now. Having said that, things in compose change pretty quickly so who knows!
👍 2
z
thanks! yeah I can come up with something simple enough using AmbientContext
c
It's a shame that you can't use arbitrary strings as identifiers in Android kotlin, they'd be really nice to make a simple kotlin-y solution that also still allows you to search the code for English strings to see where they're used