Open sgl-mnrch opened 8 months ago
Hi, can you show me the output when using -ShowLanguage?
Sure:
PS /Users/username> Get-RandomPassword -ShowLanguages Available languages: /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/afrikaans, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/albanian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/arabic, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/bengali, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/bulgarian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/catalan, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/czech, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/danish, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/dutch, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/english, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/esperanto, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/estonian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/farsi, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/finnish, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/french, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/german, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/greek, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/hebrew, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/hindi, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/hungarian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/indonesian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/italian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/japanese, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/kazakh, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/korean, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/latvian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/lithuanian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/macedonian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/norwegian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/polish, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/portuguese, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/romanian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/russian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/serbian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/slovak, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/slovenian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/spanish, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/swedish, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/thai, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/turkish, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/ukrainian, /Users/username/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources/vietnamese PS /Users/username>
what kind of system is this on?
MacOS 14 Sonoma with powershell installed via Homebrew. Same result inside the VSCode powershell environment.
This could be a bug with Get-ChildItem of some sort. The ouput of gr -ShowLanguages should not output the path, but rather only the language name: PS > gr -ShowLanguages Available languages: afrikaans, albanian, arabic, bengali, bulgarian, catalan, czech, danish, dutch, english, esperanto, estonian, farsi, finnish, french, german, greek, hebrew, hindi, hungarian, indonesian, italian, japanese, kazakh, korean, latvian, lithuanian, macedonian, norwegian, polish, portuguese, romanian, russian, serbian, slovak, slovenian, spanish, swedish, thai, turkish, ukrainian, vietnamese
If you go to your resources folder and then type Get-ChildItem, does the full path of each directory appear? or only the names of the folders
Only the name of the folders;
PS /Users/user/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources> Get-ChildItem
Directory: /Users/user/.local/share/powershell/Modules/Get-RandomPassword/1.1.1/ressources
UnixMode User Group LastWriteTime Size Name
-------- ---- ----- ------------- ---- ----
drwxr-xr-x user staff 10/19/2023 12:05 160 afrikaans
drwxr-xr-x user staff 10/19/2023 12:05 160 albania
drwxr-xr-x user staff 10/19/2023 12:05 160 arabic
drwxr-xr-x user staff 10/19/2023 12:05 160 bengali
drwxr-xr-x user staff 10/19/2023 12:05 160 bulgarian
drwxr-xr-x user staff 10/19/2023 12:05 160 catalan
drwxr-xr-x user staff 10/19/2023 12:05 160 czech
drwxr-xr-x user staff 10/19/2023 12:05 160 danish
....
When I try to run the Module
'Get-RandomPassword -ShowLanguage' gives all languages in the resource folder.