moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Identical Localizable.strings

Open anox1337 opened this issue 8 months ago • 0 comments
trafficstars

Hello!

Currently using 0.24.5

I have a strange issue:

I am using a moko-resources directory with a directory for my English strings and a directory for the German ones. This works just fine for Android.

gradle generateMRcommonMain

On iOS I could not get German texts to work, despite setting the telephone to German. So I looked at:

shared/build/generated/moko-resources/iosArm64Main/res/de.lproj/Localization.strings shared/build/generated/moko-resources/iosArm64Main/res/Base.lpro/Localization.strings

and they are identical. Both files only include the English strings.

On the Android side I have: shared/build/generated/moko-resources/androidMain/res/values-de/multiplatform_strings.xml shared/build/generated/moko-resources/androidMain/res/values/multiplatform_strings.xml

which each correctly include the different languages.

So I am assuming the reason to why I cannot get the translation in DE is because the Localization.strings file is only created based off of the (English) translations.

Any idea on why this could happen?

anox1337 avatar Mar 18 '25 14:03 anox1337