Do we have a solution for localization? Like havin...
# multiplatform
g
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?
👍 1
1
l
Maybe we could write a Gradle plugin that copies Android resource strings to the iOS way of doing localization?
g
I wanna think also about node / js, and jvm (backend).
r
@louiscad but does iOS support plurals and all that weird stuff?
👌 1
l
@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?
g
Not yet, still thinking about this
d
I have such implementation in my localization tool. Here is an example project https://github.com/PocketByte/locolaser-kotlin-mpp-example
🔥 1
👍 1
👀 1
g
Really nice @Denis Shurygin
I didn’t understand the file format but will go deeper once I solved other issues in my project.
j
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.
🔥 1