Description
In source/Public/Get-LocalizedDataForInvariantCulture.ps1 around lines 211-212, the current Write-Error $_ call coerces the exception to a string and drops metadata.
Proposed Change
Change the Write-Error call to pass the ErrorRecord explicitly:
# Current
Write-Error $_
# Proposed
Write-Error -ErrorRecord $_
This preserves the full ErrorRecord (including category, target object, and invocation info) in the error pipeline.
References