From 4105e8d739823073293f35649bfc761e9fbeeb5b Mon Sep 17 00:00:00 2001 From: Simon Heather Date: Sun, 3 May 2020 14:18:31 +0100 Subject: [PATCH 1/2] Update Get-LocalizedData --- source/Public/Get-LocalizedData.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Public/Get-LocalizedData.ps1 b/source/Public/Get-LocalizedData.ps1 index 16dbf4c..39fb820 100644 --- a/source/Public/Get-LocalizedData.ps1 +++ b/source/Public/Get-LocalizedData.ps1 @@ -139,7 +139,7 @@ #> function Get-LocalizedData { - [CmdletBinding()] + [CmdletBinding(DefaultParameterSetName = 'DefaultUICulture')] param ( [Parameter(Position = 0)] @@ -166,7 +166,7 @@ function Get-LocalizedData [Parameter(Position = 1, ParameterSetName = 'DefaultUICulture')] [System.String] - $DefaultUICulture + $DefaultUICulture = 'en-US' ) begin From 1cf7879d64d963fa6c10b7e657dd8fdb246b2adb Mon Sep 17 00:00:00 2001 From: Simon Heather Date: Sun, 3 May 2020 15:22:13 +0100 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b95a85..7f42431 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- Added a default value of `en-US` to the `DefaultUICulture` parameter of the `Get-LocalizedData` function + [Issue #33](https://github.com/dsccommunity/DscResource.Common/issues/33). + ## [0.7.1] - 2020-05-02 ### Fixed