Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-LocalizedData: Does not handle LCID 127 #11

Closed
johlju opened this issue Feb 3, 2020 · 0 comments · Fixed by #51
Closed

Get-LocalizedData: Does not handle LCID 127 #11

johlju opened this issue Feb 3, 2020 · 0 comments · Fixed by #51
Labels
enhancement The issue is an enhancement request. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub

Comments

@johlju
Copy link
Member

johlju commented Feb 3, 2020

If the (Get-UICulture).LCID -eq 127 then the following code fails because the Name property returned from Get-UICulture is an empty string ($CurrentCulture.Name in the snippet below).

$filePath = [io.Path]::Combine($callingScriptRoot, $CurrentCulture.Name, $fullFileName)

This happens on my macOS when running in the console.

PS > Get-UICulture

LCID             Name             DisplayName
----             ----             -----------
127                               

But not when running in the PSIC in VS Code, there it returns the expected LCID 1033 and the Name property is set to en-US.

@johlju johlju added enhancement The issue is an enhancement request. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub help wanted The issue is up for grabs for anyone in the community. labels Feb 3, 2020
@johlju johlju removed the help wanted The issue is up for grabs for anyone in the community. label Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant