Skip to content

winget-cli uses secondary installed os langauge for output #6282

@docentYT

Description

@docentYT

Relevant area(s)

WinGet CLI

Relevant command(s)

winget upgrade, winget install, winget configure, winget download, winget dscv3, winget export, winget features, winget font, winget hash, winget import, winget list, winget pin, winget mcp, winget repair, winget search, winget settings, winget show, winget source, winget uninstall, winget validate

Brief description of your issue

I am using the Polish language in Windows. I have my region set to Poland. After installing the Chinese (simplified, continental) basic writing and handwriting support as a secondary system preference, the WingGet CLI started to show output in Chinese.

Steps to reproduce

  • Install Chinese basic writing and handwriting support for Windows
  • Set Chinese as secondary preference
  • Use any of the WinGet CLI commands and observe the output language

Expected behavior

WinGet CLI should use the Windows language or English.

Actual behavior

WinGet CLI uses the secondary (or last installed) language

Environment

Windows 程序包管理器 v1.28.240
版权所有 (C) Microsoft Corporation。保留所有权利。

Windows: Windows.Desktop v10.0.26200.7171
系统体系结构: X64
软件包: Microsoft.DesktopAppInstaller v1.28.240.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
配置模块               %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules

链接
----------------------------------------------------------------------------
隐私声明             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           已禁用
ProxyCommandLineOptions                   已禁用
DefaultProxy                              已禁用

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LocalizationIssues related to localizationArea-OutputIssue related to CLI outputIssue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions