Thread
#compose
    z

    zsperske

    1 year ago
    Has anyone worked out a nice pattern for localizing strings?
    v

    Vinay Gaba

    1 year ago
    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!
    z

    zsperske

    1 year ago
    thanks! yeah I can come up with something simple enough using AmbientContext
    caelum19

    caelum19

    1 year ago
    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