Has anyone worked out a nice pattern for localizing strings?
12/08/2020, 9:34 PM
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!
12/08/2020, 9:35 PM
thanks! yeah I can come up with something simple enough using AmbientContext
12/09/2020, 1:56 PM
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