Thread
#multiplatform
    galex

    galex

    3 years ago
    Do we have a solution for localization? Like having common code that returns localized strings, with a single source of localized strings per language in common module?
    louiscad

    louiscad

    3 years ago
    Maybe we could write a Gradle plugin that copies Android resource strings to the iOS way of doing localization?
    galex

    galex

    3 years ago
    I wanna think also about node / js, and jvm (backend).
    r

    ribesg

    3 years ago
    @louiscad but does iOS support plurals and all that weird stuff?
    louiscad

    louiscad

    3 years ago
    @ribesg I don't know, but if it doesn't, there should be a way to generate some code that brings support for it.
    @galex Do you already have an idea of the API you would want to get from a usage standpoint for JVM and JS?
    galex

    galex

    3 years ago
    Not yet, still thinking about this
    Denis Shurygin

    Denis Shurygin

    3 years ago
    I have such implementation in my localization tool. Here is an example project https://github.com/PocketByte/locolaser-kotlin-mpp-example
    galex

    galex

    3 years ago
    Really nice @Denis Shurygin
    I didn’t understand the file format but will go deeper once I solved other issues in my project.
    josephivie

    josephivie

    3 years ago
    Lokalize can get you the language and variant, but implementation of strings is up to you. I'd recommend making an interface with values and functions that return strings. https://github.com/lightningkite/lokalize It's in a Maven repository now; I'll be updating the readme to it later today.