Skip to content

Commit e16b62e

Browse files
author
Friedrich Weinmann
committed
Fixing strings
1 parent 04adb0f commit e16b62e

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

PSFramework/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# CHANGELOG
2+
##
3+
- Fix: Missing localized strings
4+
- Fix: Missing tab completion for modules that register localized strings
5+
26
## 0.10.30.165 : 2018-12-01
37
- New: Command Join-PSFPath performs multi-segment path joins and path normalization
48
- New: Command Remove-PSFAlias deletes global aliases
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
Import-LocalizedString -Path (Resolve-Path "$script:ModuleRoot\en-us\stringsAssembly.psd1") -Module PSFramework -Language 'en-US'
2-
1+
# Load English Language Files
2+
foreach ($item in (Resolve-Path "$script:ModuleRoot\en-us\*.psd1"))
3+
{
4+
Import-LocalizedString -Path $item -Module PSFramework -Language 'en-US'
5+
}
36

47
$script:strings = Get-PSFLocalizedString -Module PSFramework

PSFramework/internal/tepp/tepp-assignment.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Register-PSFTeppArgumentCompleter -Command Get-PSFLicense -Parameter Filter -Nam
2828

2929
#region Localization
3030
Register-PSFTeppArgumentCompleter -Command Import-PSFLocalizedString -Parameter Language -Name 'PSFramework-LanguageNames'
31+
Register-PSFTeppArgumentCompleter -Command Get-PSFLocalizedString -Parameter Module -Name 'PSFramework-LocalizedStrings-Modules'
3132
Register-PSFTeppArgumentCompleter -Command Get-PSFLocalizedString -Parameter Name -Name 'PSFramework-LocalizedStrings-Names'
3233
#endregion Localization
3334

0 commit comments

Comments
 (0)