-
Notifications
You must be signed in to change notification settings - Fork 45
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
zh_hans locale not working #2051
Comments
Hi! I just tried this with Chrome on Windows and it looks like you can't set the language to I guess Firefox allows I'll need to test if renaming the folder to |
I never tested the localization for the previous two years, since I cannot change language for the extension only, and I do not personally use chinese interface for other parts of my computer. sorry... It worked when I first added it many years ago. |
Both Chrome and Safari seem only to recognize zh_CN and in my testing zh_CN works in Firefox too so let's use that. Fixes #2051.
I've made up a PR to fix this in Chrome at least and I've verified that it doesn't break Firefox. (I'm not sure if it was actually broken in Firefox to begin with because the original approach I used for testing turned out to be wrong.) However, it won't fix Safari because it looks like Safari doesn't handle language subtags correctly: https://forums.developer.apple.com/forums/thread/762697 (see also adobe/helix-sidekick-extension#721) despite the discussion here indicating Safari does handle subtags. |
Chrome onlys seems to recognize zh_CN and in my testing zh_CN works in Firefox too so let's use that. Safari doesn't seem to handle subtags correctly so this still won't work there. See: - https://forums.developer.apple.com/forums/thread/762697 - adobe/helix-sidekick-extension#721 Fixes #2051 for Chrome at least.
@birtles With this change, I'm seeing |
@xeenon thank you so much for checking! I tried this yesterday on Safari 18.0.1 on my Mac and it failed to show the |
@birtles Make sure you also change your Region to "China mainland", otherwise it will try |
@xeenon Thank you! You're amazing. That's perfect. I was confused because the Safari interface changed after updating the language (but not the region) whilst the extension interface did not. Not having the change the region would make the extension interface consistent with the Safari interface. |
@birtles My fix also makes |
Thanks! I filed Chromium issue 375528194 and updated the WECG thread. |
When I set the system language to Simplified Chinese, I still see all the UI texts in English. I have tested on Chrome (macOS), Safari (macOS), Safari (iOS). They all have this behavior. Somehow the locale
zh_hans
is not detected. When I set the system language to Japanese, they all work normally (displaying Japanese UI text).The text was updated successfully, but these errors were encountered: