Deutsch (Deutschland) (German (Germany) is installed as a Windows UI (display) language via the Windows 10 Settings application.[cultureinfo]::CurrentUICulture = 'de-DE'; Get-Item nosuch 2>&1 | Should -match 'nicht gefunden'
The test should succeed.
The test fails:
Expected regular expression 'nicht gefunden' to match Cannot find path 'C:\Users\User\nosuch' because it does not exist., but it did not match.
That is, the error message was still emitted in English.
This is a regression of sorts from Windows PowerShell, where the above test succeeds.
However, Windows PowerShell's problem is that [cultureinfo]::CurrentUICulture is reset after each command line.
PowerShell Core 7.0.0-preview.4
I am not sure that localized help was published. Debug shows internall exception and fallback to en-US.
The test actually tests error messages, not help content.
I naively assumed that since localized DLLs are present in $PSHOME (although on Unix platforms there are only 2) that at least startup messages, error messages, ... would already be localized.
Is this being tracked somewhere? Is there a roadmap?
/cc @SteveL-MSFT? 馃檪
The localized dlls come only from .Net Core, no PowerShell dlls.
It is tracked in #666 (sorry for the number :-) )
:) Thanks, @iSazonov - I'm closing this.