Global locale doesn't change the entire language #1332
-
I tried to set the global locale when the app initialized: export class ProjectSwitcherContribution implements ClientAppContribution {
initialize() {
setLanguageId('en-US');
}
} And it's working with the most of the IDE, excepts for these commands: I'm not sure what is that module, and how can change the language of it to English? Sorry that I don't know Chinese, and my target users of the IDE neither! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@nguyenhongphat0 see the samples here https://github.com/opensumi/opensumi-module-samples/blob/main/example/src/browser/i18n/setup.ts, if you want to replace locale language, you should call the |
Beta Was this translation helpful? Give feedback.
-
this might be a bug, the i18n string is already in the codebase, but seem not work. |
Beta Was this translation helpful? Give feedback.
-
v2.19 should already fix this problem. But in this version, we still have to set the language of Monaco separately: https://github.com/opensumi/core/blob/main/packages/startup/entry/web/app.tsx#L5 In the top of your code entry, using the func: |
Beta Was this translation helpful? Give feedback.
v2.19 should already fix this problem.
But in this version, we still have to set the language of Monaco separately:
https://github.com/opensumi/core/blob/main/packages/startup/entry/web/app.tsx#L5
In the top of your code entry, using the func:
setLocale