Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please use the VSCode language for pac #57

Closed
brasov2de opened this issue Jun 7, 2021 · 3 comments
Closed

Please use the VSCode language for pac #57

brasov2de opened this issue Jun 7, 2021 · 3 comments
Labels
question Further information is requested

Comments

@brasov2de
Copy link

Even if the windows is not in english (german in my case), a lot of devs prefer all the development tools in english.
We need to do demos in english too.

Unfortunatelly the "Power Platform VS Code extension" gets installed in german. Is there a way to change the language?
Using the VSCode language as a base for the installation would be great too.

@davidjenni
Copy link
Member

Hi @brasov2de

pac

CLI language: the pac CLI chooses its UI language by reading CultureInfo.CurrentUICulture, which corresponds to the "Windows display language" setting in the OS' Language. What language is your VS Code app's GUI running in?
You shouldn't need to resort to your "workaround" (likely by copying over the localized .json file for pac?), changing the Windows display language will tell pac CLI which locale to use:
image

Now pac will emit its German loc texts (in either VS Code terminal or regular cmd prompt/pwsh):

(08:30:24) ~\Src\pp-vscode [main ≡]
> pac auth
Microsoft PowerApps CLI
Version: 1.6.7+g5031575

Fehler: Es fehlt ein untergeordneter Befehl.

Verwendung: pac auth [create] [list] [select] [delete] [name] [clear]

  create                      Authentifizierungsprofile auf diesem Computer erstellen und speichern  
  list                        Auf diesem Computer gespeicherte Authentifizierungsprofile auflisten    
  select                      Wählen Sie das Authentifizierungsprofil aus, das aktiv sein soll.      
  delete                      Ein bestimmtes Authentifizierungsprofil löschen
  name                        Vorhandenes Authentifizierungsprofil benennen oder umbenennen
  clear                       Alle auf diesem Computer gespeicherten Authentifizierungsprofile löschen

@davidjenni davidjenni added the question Further information is requested label Jun 10, 2021
@davidjenni
Copy link
Member

@brasov2de and I discussed offline: setting Windows display language does achieve what Diana needs. Resolving for now

@brasov2de
Copy link
Author

Thank you @davidjenni !
Yes, after changing "Windows display language" and also the regional format and keyboard (as we discussed offline) I have an english "pac cli" and Windows environment, but it works without issues.
2021-06-15 20_42_05-Clipboard
Thanks again for your support!
Kind regards,
Diana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants