Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ios Maui sample app uses Chinese Simplified when Chinese Traditional is set in phone preferences #20626

Closed
PureWeen opened this issue May 21, 2024 · 2 comments

Comments

@PureWeen
Copy link


Issue moved from dotnet/runtime#102560


From @Czapek83 on Tuesday, May 21, 2024 11:12:47 AM

Description

Created new maui project. Created Strings.resx, Strings.zh.resx, Strings.zh-Hans.resx, and Strings.zh-Hant.resx files with below values of SampleText:
image

On MainPage.xaml added label that will display proper text according to current language:
image

And now, when setting Iphone Region to "China mainland" and language to "Chinese Traditional", the SampleText is taken from Chinese, Simplified, but should be taken from Chinese, Traditional:
image

Steps to Reproduce

  1. Create new maui project.
  2. Create localized strings in Resources (Strings.zh-Hans.resx for Chinese Simplified and Strings.zh-Hant for Chinese Traditional) with different strings in it.
  3. Use localized string in one of your screens
  4. Change your Iphone region to "China mainland" and language to "Chinese Traditional".
  5. Run your application and you can see that Chinese Simplified string is used.

Link to public reproduction project repository

https://github.com/Czapek83/Chinese_LanguageIssue

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

IOS 16.7.7, IOS 17.4.1

Did you find any workaround?

Unfortunatelly, not at all.

Relevant log output

No response

@PureWeen
Copy link
Author


Issue moved from dotnet/runtime#102560

  • Please respond to @github-actions[bot].

From @github-actions[bot] on Tuesday, May 21, 2024 11:13:11 AM

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@rolfbjarne
Copy link
Member

This is a problem for dotnet/runtime, so I moved the original dotnet/maui issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants