Title: Import-LocalizedData does not load any data when there is mismatch between current UI culture and data available · Issue #8219 · PowerShell/PowerShell · GitHub
Open Graph Title: Import-LocalizedData does not load any data when there is mismatch between current UI culture and data available · Issue #8219 · PowerShell/PowerShell
X Title: Import-LocalizedData does not load any data when there is mismatch between current UI culture and data available · Issue #8219 · PowerShell/PowerShell
Description: This issue shows a regression as it works in Windows PowerShell but not PowerShell Core. When Import-LocalizedData is used without specifying the UICulture explicitly but there is no language folder for it, then Windows PowerShell falls ...
Open Graph Description: This issue shows a regression as it works in Windows PowerShell but not PowerShell Core. When Import-LocalizedData is used without specifying the UICulture explicitly but there is no language folde...
X Description: This issue shows a regression as it works in Windows PowerShell but not PowerShell Core. When Import-LocalizedData is used without specifying the UICulture explicitly but there is no language folde...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/8219
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Import-LocalizedData does not load any data when there is mismatch between current UI culture and data available","articleBody":"This issue shows a regression as it works in `Windows PowerShell` but not `PowerShell Core`.\r\nWhen `Import-LocalizedData` is used without specifying the `UICulture` explicitly but there is no language folder for it, then Windows PowerShell falls back to one that is available but PowerShell Core (6.1 and 6.1-preview) does not assign any variables and there is also no error/warning.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\nI made an example hello-world repo [here](https://github.com/bergmeister/PSCore_Import-LocalizedData_Bug) for your convenience\r\n\r\nExpected behaviour\r\n-----------------\r\n\r\n`Import-LocalizedData` could e.g.\r\n\r\n- fallback to an existing culture if there is no exact match\r\n- offer a parameter for a default culture if there is no match\r\n- log a warning instead of not doing anything\r\n\r\nActual behavior\r\n---------------\r\n\r\nThe variable will not be bound if there is a mismatch and no warnings are given to the user, thus leading to bugs.\r\nYes, the module author could fix this, by writing some logic for a fallback language provider if there is no match but given that Windows PowerShell handled it nicely, this is a bit of a regression to me.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 6.2.0-preview.1\r\nPSEdition Core\r\nGitCommitId 6.2.0-preview.1\r\nOS Microsoft Windows 10.0.17134\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\n```\r\n","author":{"url":"https://github.com/bergmeister","@type":"Person","name":"bergmeister"},"datePublished":"2018-11-09T08:15:31Z","url":"https://github.com/PowerShell/PowerShell/issues/8219"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:127ac2de-ca2d-3cf8-4ca7-776a167927c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED24:20925:548653:749096:6AFD1B84 |
| html-safe-nonce | 75e80dda9b00e28a2ebcaab960e86a2c0d19d73afe74ba91f8c96a4ec620b7eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDI0OjIwOTI1OjU0ODY1Mzo3NDkwOTY6NkFGRDFCODQiLCJ2aXNpdG9yX2lkIjoiMjIyNDc5NzgwMjc2Njg2NzMzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 496ae9f52e12eaa9b03c651a500e8203ad64e44c5cb0dedb2147a333b164ad8b |
| hovercard-subject-tag | issue:379063072 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/8219/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77e158ff6ab2a75727958fdb12d7f645c0d4fc4572fdcfd9eede1c1ee776a8b0/PowerShell/PowerShell/issues/8219 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77e158ff6ab2a75727958fdb12d7f645c0d4fc4572fdcfd9eede1c1ee776a8b0/PowerShell/PowerShell/issues/8219 |
| og:image:alt | This issue shows a regression as it works in Windows PowerShell but not PowerShell Core. When Import-LocalizedData is used without specifying the UICulture explicitly but there is no language folde... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bergmeister |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width