microsoft / microsoft/winget-cli
Wrong locale used by winget-cli
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
My default language in system is Polish, Japanese language pack is installed as secondary (I'm learning Japanese).
Winget ignore Polish package and print all messages in japanese. Even though I have the locale set to pl-PL in the system and json winget configuration.
Polish keyboard is enabled and set as default (POL in dock near clock)
Steps to reproduce
Install any package eg.:
winget install -e --id=JesseDuffield.lazygit
Expected behavior
Message in polish or english.
Actual behavior
Message in japanese:
➜ Get-WinSystemLocale
LCID Name DisplayName
---- ---- -----------
1045 pl-PL polski (Polska)
➜ winget install -e --id=JesseDuffield.lazygit
既存のパッケージが既にインストールされています。インストールされているパッケージ...をアップグレードしようとしています
利用可能なアップグレードが見つかりませんでした。
構成されたソースから入手できる新しいパッケージ バージョンはありません。
Environment
➜ winget --info
v1.6.3482 の Windows パッケージ マネージャー
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.2861
システム アーキテクチャ: X64
パッケージ: Microsoft.DesktopAppInstaller v1.21.3482.0
Winget ディレクトリ
--------------------------------------------------------------------------------------------------------------------------------------
ログ %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
ユーザー設定 %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
ポータブル リンク ディレクトリ (ユーザー) %LOCALAPPDATA%\Microsoft\WinGet\Links
ポータブル リンク ディレクトリ (マシン) C:\Program Files\WinGet\Links
ポータブル パッケージ ルート (ユーザー) %LOCALAPPDATA%\Microsoft\WinGet\Packages
ポータブル パッケージ ルート C:\Program Files\WinGet\Packages
ポータブル パッケージ ルート (x86) C:\Program Files (x86)\WinGet\Packages
インストーラのダウンロード %USERPROFILE%\Downloads
リンク
-----------------------------------------------------------------------------------
プライバシーに関する声明 https://aka.ms/winget-privacy
使用許諾契約 https://aka.ms/winget-license
サード パーティに関する通知 https://aka.ms/winget-3rdPartyNotice
ホーム ページ https://aka.ms/winget
Windows ストアの使用条件 https://www.microsoft.com/en-us/storedocs/terms-of-sale
管理者設定 状態
----------------------------------------------
LocalManifestFiles 無効
BypassCertificatePinningForMicrosoftStore 無効
InstallerHashOverride 無効
LocalArchiveMalwareScanOverride 無効
Settings.json:
{
"$schema": "https://aka.ms/winget-settings.schema.json",
"installBehavior": {
"preferences": {
"locale": [ "pl-PL", "en-US" ]
}
},
"visual": {
"progressBar": "rainbow"
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with winget install -e --id=JesseDuffield.lazygit using the supplied Windows locale and settings.json configuration. Trace how winget selects the message language, then verify that configured pl-PL or fallback en-US is used instead of Japanese and that the command output reflects the selected locale.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, localization, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100