PowerShell 7.6.6 suddenly began displaying errors, parameter descriptions, and completion help in Polish, even though the system and user culture have been Polish for years. PowerShell 5.1 still displays these messages in English under the same Windows settings. `$PSCulture` and `$PSUICulture` report `pl-PL`, and `Get-UICulture` also reports Polish.
Changing the current thread culture with `[System.Threading.Thread]::CurrentThread.CurrentUICulture = [cultureinfo]'en-US'` switches errors and completion text back to English, but it does not change the language used by `Get-Help`. Downgrading to PowerShell 7.6.3 restores English behavior, even though `$PSUICulture` still reports `pl-PL`; changing the thread UI culture to Polish in 7.6.3 does not make the messages switch languages. This appears to be a behavior change or regression introduced after 7.6.3. Is there a supported way to force PowerShell 7.6.6's UI and help content to English, or should this be reported as a bug?
1 Answer
That sounds like a behavior change or regression in the newer PowerShell version rather than a Windows configuration problem. Your comparison between 7.6.3 and 7.6.6 is especially useful: the newer version honors `CurrentUICulture`, while the older one appears to keep its messages in English. I would check whether an issue has already been reported and file one with these exact version comparisons if it has not. Include examples for errors, tab completion, and `Get-Help`, since they may use different localization paths.

I can work around errors and completion by setting the thread UI culture in my profile, but I still have not found a way to change the language of the help templates. If the help system exposed the same setting, that would be enough for me.