Skip to content

Conversation

@cyfung1031
Copy link
Collaborator

@cyfung1031 cyfung1031 commented Nov 15, 2025

@cyfung1031 cyfung1031 force-pushed the pr-meta--header-hint-001 branch from 7b594a4 to ff571dd Compare November 17, 2025 11:28
@cyfung1031 cyfung1031 changed the title monaco editor hints 多国语言化 monaco editor hints 多国语言化 及 增加 @require-css 提示 Nov 18, 2025
@CodFrm CodFrm changed the base branch from main to release/v1.3 November 20, 2025 07:26
@cyfung1031 cyfung1031 changed the title monaco editor hints 多国语言化 及 增加 @require-css 提示 [v1.3] monaco editor hints 多国语言化 及 增加 @require-css 提示 Nov 22, 2025
@cyfung1031 cyfung1031 force-pushed the pr-meta--header-hint-001 branch from d782d85 to 7c5597a Compare December 9, 2025 07:10
@cyfung1031
Copy link
Collaborator Author

cyfung1031 commented Dec 9, 2025

  messageQueue.subscribe<TKeyValue<SystemConfigKey>>(SystemConfigChange, ({ key, value }) => {
    if (key === "language") {
      // @ts-ignore
      updateLang(value);
    }
  });

@CodFrm 我不太懂你改过的 SystemConfigChange。有点复杂。
这部份的代码你再看看吧

@CodFrm
Copy link
Member

CodFrm commented Dec 9, 2025

  messageQueue.subscribe<TKeyValue<SystemConfigKey>>(SystemConfigChange, ({ key, value }) => {
    if (key === "language") {
      // @ts-ignore
      updateLang(value);
    }
  });

@CodFrm 我不太懂你改过的 SystemConfigChange。有点复杂。 这部份的代码你再看看吧

我修改了

  systemConfig.addListener("language", (lang) => {
    updateLang(lang);
  });

@CodFrm CodFrm requested a review from Copilot December 9, 2025 07:24
@CodFrm CodFrm added the P1 🔥 重要但是不紧急的内容 label Dec 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

title: "Deutsch",
thisIsAUserScript: "Ein Benutzerskript",
undefinedPrompt: "Undefinierter Prompt",
quickfix: "${0}-Problem beheben",
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

德语翻译中的 quickfix 字符串使用了错误的字符串插值语法。应该使用 {0} 而不是 ${0}。这会导致替换逻辑失败,显示 ${0}-Problem beheben 而不是实际的错误代码。

Suggested change
quickfix: "${0}-Problem beheben",
quickfix: "{0}-Problem beheben",

Copilot uses AI. Check for mistakes.
title: "Tiếng Việt",
thisIsAUserScript: "Một user script",
undefinedPrompt: "Prompt chưa được định nghĩa",
quickfix: "Sửa lỗi ${0}",
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

越南语翻译中的 quickfix 字符串使用了错误的字符串插值语法。应该使用 {0} 而不是 ${0}。这会导致替换逻辑失败,显示 Sửa lỗi ${0} 而不是实际的错误代码。

Suggested change
quickfix: "Sửa lỗi ${0}",
quickfix: "Sửa lỗi {0}",

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 🔥 重要但是不紧急的内容

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Monaco Editor 对 @require-css 出现错误提示 [Feature] [i18n] src/pkg/utils/monaco-editor/index.ts

2 participants