Localization completely broken in IOS apps #12684
Labels
external
partner/macios
Issues for the Mac / iOS SDK
partner
Issue or Request from a partner team
platform/iOS 🍎
t/bug
Something isn't working
Description
It's impossible to add more than one additional language to an ios app.
Localization resx files are ignored for 2 and more additional languages when an ios app was built in release and run on device.
I created a simple app, source code available here. It contains three resx files (Resources/MyLocalization.resx, Resources/MyLocalization.de.resx, Resource/MyLocailzation.es.resx) which I use to obtain the localized string "MyString" in the following way:
It works fine when I build my app in release for an iphone simulator, but it doesn't work when I build it in release for a real device. It works only for one additional resx file.
Steps to Reproduce
dotnet new maui
Press each button - you should see different strings (string from eng, string from de, string from es).
Press "Set Eng Culture" to see "string from eng".
Press "Set De Culture" you should see the "string from de", but this string is "string from eng". It's wrong behaviour.
Press "Set Es Culture" to see "string from es".
Link to public reproduction project repository
https://github.com/nevse/maui-tests-iosreleaselocalization
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
ios 16
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: