Update language options in package.json and langHandler.ts

This commit is contained in:
bobo.yang 2023-12-25 20:51:26 +08:00
parent 9e6eeef721
commit 257c60e493
3 changed files with 3 additions and 3 deletions

View File

@ -555,7 +555,7 @@
"DevChat.Language": {
"type": "string",
"default": "en",
"enum": ["en", "zh-cn"],
"enum": ["en", "zh"],
"enumDescriptions": [
"English",
"Simplified Chinese"

View File

@ -9,7 +9,7 @@ regOutMessage({ command: 'ideLanguage', lang: "" }); // Placeholder for the lang
export async function getIdeLanguage(panel: vscode.WebviewPanel | vscode.WebviewView): Promise<void> {
// Get the current IDE language setting
const ideLanguage = vscode.env.language;
// 'en' stands for English, 'zh-cn' stands for Simplified Chinese
// 'en' stands for English, 'zh' stands for Simplified Chinese
// Construct the message with the language information
const langMessage = {

View File

@ -34,7 +34,7 @@ const functionRegistry: any = {
"keys": [],
"handler": async () => {
const language = vscode.env.language;
// 'en' stands for English, 'zh-cn' stands for Simplified Chinese
// 'en' stands for English, 'zh' stands for Simplified Chinese
return language;
}
},