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

Cannot switch between "zh-TW" and "zh-CN" #15

Open
imnasnainaec opened this issue Apr 15, 2024 · 4 comments
Open

Cannot switch between "zh-TW" and "zh-CN" #15

imnasnainaec opened this issue Apr 15, 2024 · 4 comments

Comments

@imnasnainaec
Copy link
Contributor

  • Type "zh-CN"
  • Select the "zh-CN" option
  • Correctly have "中文 / Chinese (zh-CN)" with "Script: Han (Simplified variant) - Hans"
  • In the "Script" menu, select "Han (Traditional variant) - Hant"
  • The languages stays at "中文 / Chinese (zh-CN)" but should change to "繁體中文 / Chinese (zh-TW)"

Similarly, if you start with "zh-TW" then try to change to "Script: Han (Simplified variant) - Hans", it will stay on "繁體中文 / Chinese (zh-TW)" rather than changing to "中文 / Chinese (zh-CN)".

@gtryus
Copy link
Contributor

gtryus commented Apr 29, 2024

This seems like a pretty special case. Are there any other languages where changing the script code show change the country code. My thinking is that it is best left to the user to enter the code or else search by country or language name.

For example typing China Manadarin or Taiwan Mandarin will give you a very short list to choose from. It also supports searching using the Chinese characters which may be the most common way to find the language anyway.

@imnasnainaec
Copy link
Contributor Author

I'm not sure if this makes a different, but you are able to switch country code by selecting a script that causes the country code to disappear, e.g.:

  • type zh-CN
  • select 中文 / Chinese zh-CN
  • the language is 中文 / Chinese (zh-CN)
  • click on the Script menu
  • select Bopomofo - Bopo
  • the language is now Chinese (zh-Bopo)
  • click on the Script menu
  • select Han (Traditional Variant) - Hant
  • the language is now 繁體中文 / Chinese (zh-TW)

I'm not sure if that illustrates that this issue is enough of a special case to close it or if it shows that language codes are too easily lost.

@devosb
Copy link

devosb commented May 2, 2024

Punjabi is written in two different scripts that depend on the country. There are other, smaller languages in Asia that have this behaviour as well. So it might not be that common, but more common than a pretty special case. Did I understand the issue correctly?

@imnasnainaec
Copy link
Contributor Author

@devosb I suspect you're right that there are other cases like this. Though I'm not finding a comparable example with Punjabi to what's happening with zh-CN and zh-TW. You can test it out yourself with the Mui Language Picker Demo: http://mui-language-picker-demo.org.s3-website-us-east-1.amazonaws.com/

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

3 participants