ide-electron
ide-electron copied to clipboard
How can I change the language?
Sorry for asking such a simple question. But I'm not familiar with Chinese and couldn't find how to change the IDE's language to English.
I used this way: Setting icon > 设置 > 全局设置 > 语言 > English But don't know how to apply this setting!
Sorry for asking such a simple question. But I'm not familiar with Chinese and couldn't find how to change the IDE's language to English.
I used this way: Setting icon > 设置 > 全局设置 > 语言 > English But don't know how to apply this setting!
You can change the default language by adding general.language: "en-US" to the defaultPreferences property of AppConfig
AppConfig is the constructor parameter of ClientApp
For example: https://github.com/opensumi/core/blob/main/packages/startup/entry/web-lite/app.tsx#L56
Sorry for asking such a simple question. But I'm not familiar with Chinese and couldn't find how to change the IDE's language to English.
I used this way: Setting icon > 设置 > 全局设置 > 语言 > English But don't know how to apply this setting!
Global setting not work when empty project. You can change it through the following steps
- Open a folder by ide-electron
- Setting icon > 设置 > 全局设置 > 语言 > English
This is a bug that will be fixed later. 🤔️
I used this code snipet and it worked (almost):
// src/browser/project.ts:
initialize() {
setLanguageId('en-US');
localStorage.setItem(`${PreferenceScope.User}:${'general.language'}`, 'en-US');
}
Most of the UI would be in English except this module https://github.com/opensumi/core/discussions/1332, which is considered a bug and hopefully it will got fixed soon!