-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
Argument 'locale' is not working on 1.92.0 and insiders #224769
Comments
@EzioLi01 can you tell me how it's failing? I tried adding |
W're using Note: Only using
Error message is not localized, but it working well on 1.91.0. |
Also, I have tried to use
The issue is still repro both on pipeline and local machine with Windows, MacOS and Linux. Please check it. Thanks! |
@EzioLi01 when VS Code opens, can you see that it is in Chinese or is it still in English? I'm not talking about your test in this case, I'm talking about VS Code in general. This will help me understand if it has to do with VS Code applying this locale entirely or just at the extension level. |
Yes, the vscode UI is still in English. Sorry for the unclear info, actually I'm not familiar with vscode localization feature. Our extension internal localized strings are generated and bundled in According to official doc and with my understanding, vscode UI localization should be related to langPack, but internal message should work well without langPack. In 1.91, when I open vscode with |
👁 , so I can run |
hey, same thing happens to me too. The extension internal log can be localized without language package before 1.92 in my local. Is there any changes that may cause this from version 1.91.1 to 1.92.0? |
Yes, the UI translation should install correct language package, it works well. But extension internal message and log can be localized directly using vscode-nls bundler without language package before 1.92. Need to confirm if it's the expected behavior. |
Yes, I was just referring to the question asked in #224769 (comment). My understanding is also that 3rd party extensions are shipping their own translations and thus would not require the VS Code language pack. With @TylerLeonhardt did you try in your sample to reproduce using |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Looked into this some more... looks like a regression in what is passed down in the In 1.91: "VSCODE_NLS_CONFIG": {
"locale": "ja",
"osLocale": "en-us",
"availableLanguages": {},
"_languagePackSupport": true
} In 1.92: "VSCODE_NLS_CONFIG": {
"userLocale": "ja",
"osLocale": "en-us",
"resolvedLanguage": "en",
"defaultMessagesFile": "/Applications/Visual Studio Code.app/Contents/Resources/app/out/nls.messages.json",
"locale": "en",
"availableLanguages": {}
}, This is what happened when I ran tests with I didn't repro this with "VSCODE_NLS_CONFIG": {
"userLocale": "la",
"osLocale": "en-us",
"resolvedLanguage": "la",
"defaultMessagesFile": "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/nls.messages.json",
"languagePack": {
"translationsConfigFile": "/Users/tyleonha/Library/Application Support/Code - Insiders/clp/52c45b3a0d3f8a9836240c5c89f93e94.la/tcf.json",
"messagesFile": "/Users/tyleonha/Library/Application Support/Code - Insiders/clp/52c45b3a0d3f8a9836240c5c89f93e94.la/e37706186d2105b4158df80574323ebb987d7f64/nls.messages.json",
"corruptMarkerFile": "/Users/tyleonha/Library/Application Support/Code - Insiders/clp/52c45b3a0d3f8a9836240c5c89f93e94.la/corrupted.info"
},
"locale": "la",
"availableLanguages": {
"*": "la"
},
"_languagePackId": "52c45b3a0d3f8a9836240c5c89f93e94.la",
"_languagePackSupport": true,
"_translationsConfigFile": "/Users/tyleonha/Library/Application Support/Code - Insiders/clp/52c45b3a0d3f8a9836240c5c89f93e94.la/tcf.json",
"_cacheRoot": "/Users/tyleonha/Library/Application Support/Code - Insiders/clp/52c45b3a0d3f8a9836240c5c89f93e94.la",
"_resolvedLanguagePackCoreLocation": "/Users/tyleonha/Library/Application Support/Code - Insiders/clp/52c45b3a0d3f8a9836240c5c89f93e94.la/e37706186d2105b4158df80574323ebb987d7f64",
"_corruptedFile": "/Users/tyleonha/Library/Application Support/Code - Insiders/clp/52c45b3a0d3f8a9836240c5c89f93e94.la/corrupted.info"
} You can see the I didn't make changes in this space then, which leads me to believe it's the NLS changes you did @bpasero but I need to look closer. |
Update: locale issue is fixed on latest insiders. Version: 1.93.0-insider (user setup) |
Thanks so much!! |
Hey experts, I'm project owner for microsoft/vscode-react-native, we're using vscode-test for the extension localization testing. The test is running in latest stable version of vscode as below.
runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs: ["--locale", "zh-cn"], version: "stable", });
Recently we found our locale tests is failed in pipeline, the test is working well on vscode 1.91.0, but failed both on 1.92.0 and insiders.
Could you please help to check it? Any info needed please let me know, thank you!
The text was updated successfully, but these errors were encountered: