winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

WinGet doesn't include PackageName from non-default locales for searching

Open SpecterShell opened this issue 3 years ago • 0 comments

Brief description of your issue

While searching through PackageNames, WinGet only uses ones from default locale, and those from non-default locales will be ignored.

Steps to reproduce

Use Nutstore.Nutstore as an example, which has different PackageName in different locales. (Nutstore in en-US and 坚果云 in zh-CN) Manifest: https://github.com/microsoft/winget-pkgs/tree/master/manifests/n/Nutstore/Nutstore/6.2.7

  1. Run winget search Nutstore, which returns Nutstore.Nutstore.
  2. Run winget search 坚果云, which doesn't return Nutstore.Nutstore.

Expected behavior

WinGet should returns Nutstore.Nutstore in results.

❯ winget search 坚果云
名称              ID                        版本  匹配        源
----------------------------------------------------------------------
坚果云            Nutstore.Nutstore         6.2.7             winget
Nutstore LightApp Nutstore.NutstoreLightApp 2.0.3 Tag: 坚果云 winget

The PackageName in the result shoule follow the locale as well.

Actual behavior

WinGet didn't return Nutstore.Nutstore in results.

❯ winget search 坚果云
名称              ID                        版本  匹配        源
--------------------------------------------------------------------
Nutstore LightApp Nutstore.NutstoreLightApp 2.0.3 Tag: 坚果云 winget

Environment

Windows 程序包管理器(预览) v1.4.2161-preview
版权所有 (C) Microsoft Corporation。保留所有权利。

Windows: Windows.Desktop v10.0.22621.754
系统体系结构: X64
程序包: Microsoft.DesktopAppInstaller v1.19.2161.0

日志: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

链接
----------------------------------------------------------------------------
隐私声明             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

SpecterShell avatar Oct 22 '22 09:10 SpecterShell