DSCResources/ROSSCommon/Src/Get-LocalizableRegistryKeyValue.ps1

function Get-LocalizableRegistryKeyValue {
<#
    .NOTES
        https://github.com/PowerShell/xPSDesiredStateConfiguration/blob/dev/DSCResources/MSFT_xPackageResource/MSFT_xPackageResource.psm1
#>

    [CmdletBinding()]
    param (
        [Parameter(Mandatory)]
        [System.Object] $RegistryKey,

        [Parameter(Mandatory)]
        [System.String] $ValueName
    )
    process {

        $result = $RegistryKey.GetValue("{0}_Localized" -f $ValueName);
        if (-not $result) {

            $result = $RegistryKey.GetValue($ValueName);
        }
        return $result;

    }
} #end function Get-LocalizableRegistryKeyValue