Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ The project has been upgraded to `.NET 10`. The main app is packaged as an MSIX

After installation, open Windows Command Palette, then search for and run `Translator`.

> [!IMPORTANT]
> Install the extension from one channel only (WinGet EXE installer **or** MSIX bundle). Installing both can create duplicate `Translator` entries in Command Palette extension settings.
> If duplicate entries appear after an update, uninstall both copies, then install only one channel again.

Enter text directly to translate it:

```text
Expand Down
4 changes: 4 additions & 0 deletions README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

安裝後開啟 Windows Command Palette,搜尋並執行 `Translator`。

> [!IMPORTANT]
> 請只使用單一來源安裝擴充套件(WinGet EXE 安裝程式 **或** MSIX bundle)。如果兩種都安裝,可能會在 Command Palette 擴充套件設定中出現重複的 `Translator` 項目。
> 若更新後出現重複項目,請先移除兩份安裝,再重新安裝其中一種來源即可。

直接輸入文字即可翻譯:

```text
Expand Down
3 changes: 3 additions & 0 deletions src/CmdPalTranslator/setup-template.iss
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ Name: "{group}\{#AppName}"; Filename: "{app}\{#ExtensionName}.exe"
[Registry]
Root: HKCU; Subkey: "SOFTWARE\Classes\CLSID\{#Clsid}"; ValueType: string; ValueName: ""; ValueData: "{#ExtensionName}"; Flags: uninsdeletekey
Root: HKCU; Subkey: "SOFTWARE\Classes\CLSID\{#Clsid}\LocalServer32"; ValueType: string; ValueName: ""; ValueData: """{app}\{#ExtensionName}.exe"" -RegisterProcessAsComServer"; Flags: uninsdeletekey

[Run]
Filename: "powershell.exe"; Parameters: "-NoProfile -ExecutionPolicy Bypass -Command ""Get-AppxPackage -Name '25526PoyChang.TranslatorforCommandPalette' -ErrorAction SilentlyContinue | Remove-AppxPackage -ErrorAction SilentlyContinue"""; Flags: runhidden