microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.05k stars 1.43k forks source link

Winget updated my Mozilla Firefox and instead of downloading the pt-BR version, it downloaded the en-US #3755

Open maisondasilva opened 11 months ago

maisondasilva commented 11 months ago

Brief description of your issue

Winget updated my Mozilla Firefox and instead of downloading the Portuguese version, it downloaded the English version

Steps to reproduce

image

Expected behavior

Mozilla Firefox pt-BR

Actual behavior

Mozilla Firefox en-US

Environment

v1.7.2782-preview
denelon commented 11 months ago

It's a workaround, but you can pass "--locale" to get a specific locale when upgrading a single package.

We don't have a reliable way to parse the locale from the "Name"/"displayName".

maisondasilva commented 11 months ago

It's a workaround, but you can pass "--locale" to get a specific locale when upgrading a single package.

We don't have a reliable way to parse the locale from the "Name"/"displayName".

Thanks for the update, the command would look like this right?

winget upgrade --all --locale pt-BR

denelon commented 11 months ago

That might not have the desired affect because not all packages have that locale so it might not install upgrades for things that don't offer the specified locale.

Maybe running that followed by running it without the locale would update the rest.

I was suggesting winget upgrade Mozilla.Firefox --locale pt-BR

maisondasilva commented 11 months ago

@denelon Would it be a solution for me to run the command winget upgrade --all --locale pt-BR and then winget upgrade --all ? Because for example WinRAR updates with the Portuguese Brazilian version, the problem is that I know which program will update with the language correctly and which ones won't.

If I use the command winget upgrade --all --locale pt-BR and the application does not support the locale, will it not update?

Thanks for the time!

Thanks Maison

denelon commented 11 months ago

I don't remember if the CLI argument is a "prefer" logic or a "require" logic. I'll ask @JohnMcPMS...

maisondasilva commented 11 months ago

@denelon I tried updating using winget upgrade --all --locale pt-BR ,but it doesn't install if I use winget upgrade --all it will install the English version again

Is there any way to fix this and have winget install the version in my language?

image