Skip to content

Commit

Permalink
Lock the version of non-English string resources (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbergstrom committed Feb 4, 2023
1 parent 8da6ddf commit 5eccf9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.3] - 2023-01-29
### Fixed
- Hard-code the version of WinGet non-EN-US localization resources to work around microsoft/winget-cli#2783

## [0.3.2] - 2023-01-21
### Fixed
- Package version information for packages with long names correctly displayed in non-UTF-8 encoded output terminals
Expand Down
2 changes: 1 addition & 1 deletion src/Cobalt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $i18nHandlerHelper = {

$(try {
# We have to trim the leading BOM for .NET's XML parser to correctly read Microsoft's own files - go figure
([xml](((Invoke-WebRequest -Uri "https://raw.githubusercontent.com/microsoft/winget-cli/master/Localization/Resources/$language/winget.resw" -ErrorAction Stop ).Content -replace "\uFEFF", ""))).root.data
([xml](((Invoke-WebRequest -Uri "https://raw.githubusercontent.com/microsoft/winget-cli/v1.3.2691/Localization/Resources/$language/winget.resw" -ErrorAction Stop ).Content -replace "\uFEFF", ""))).root.data
} catch {
# Fall back to English if a locale file doesn't exist
(
Expand Down
2 changes: 1 addition & 1 deletion src/Cobalt.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = 'Cobalt.psm1'
ModuleVersion = '0.3.2'
ModuleVersion = '0.3.3'
GUID = '9f295092-e7fd-4c52-b41e-3c5b0612fa52'
Author = 'Ethan Bergstrom'
Copyright = '2021'
Expand Down

0 comments on commit 5eccf9c

Please sign in to comment.