@@ -45,12 +45,35 @@ This extension contributes the following settings:
4545| ` powershellLocalization.logLevel ` | Set the logging level for the extension | ` info ` | ` error ` , ` warn ` , ` info ` , ` debug ` |
4646| ` powershellLocalization.uiCulture ` | Specify the UI culture for PowerShell localization data | ` en-US ` | Language codes like ` en-US ` , ` fr-FR ` , ` de-DE ` |
4747
48+ ## Commands
49+
50+ <!-- Full image URL with https required for vscode -->
51+ ![ Example showing the commands in action] ( https://github.com/PSInclusive/PowerShellLocalization/raw/main/static/SwitchLanguage.gif )
52+
53+ This extension contributes the following commands that can be accessed via the Command Palette (` Ctrl+Shift+P ` or ` Cmd+Shift+P ` ):
54+
55+ | Command | Description |
56+ | ---------| -------------|
57+ | ` PowerShell Localization: Switch UI Culture ` | Change the UI culture for displaying localization values |
58+ | ` PowerShell Localization: Set UI Culture to English (en-US) ` | Set the UI culture to English (en-US) |
59+ | ` PowerShell Localization: Set UI Culture to French (fr-FR) ` | Set the UI culture to French (fr-FR) |
60+
4861## Installation
4962
63+ Installing from the marketplace is the best option: [ Visual Studio Marketplace]
64+
50651 . Package the extension using the provided scripts
51662 . Install the ` .vsix ` file in VS Code
52673 . Reload VS Code to activate the extension
5368
69+ ## Usage
70+
71+ 1 . Open a PowerShell module (` .psm1 ` file) that uses localization
72+ 2 . Ensure you have localization data files in language folders (e.g.,
73+ ` en-US/ModuleName.psd1 ` )
74+ 3 . Reference localization variables in your code: ` $LocalizedData.MessageText `
75+ 4 . The extension will display the actual localized values inline
76+
5477## Development
5578
5679To build and install this extension:
@@ -66,18 +89,12 @@ To build and install this extension:
6689./build.ps1 -Task Install
6790```
6891
69- ## Usage
70-
71- 1 . Open a PowerShell module (` .psm1 ` file) that uses localization
72- 2 . Ensure you have localization data files in language folders (e.g.,
73- ` en-US/ModuleName.psd1 ` )
74- 3 . Reference localization variables in your code: ` $LocalizedData.MessageText `
75- 4 . The extension will display the actual localized values inline
76-
7792## Contributing
7893
7994Contributions are welcome! Please feel free to submit issues and pull requests.
8095
8196## License
8297
8398MIT
99+
100+ [ Visual Studio Marketplace ] : https://marketplace.visualstudio.com/items?itemName=PSInclusive.powershelllocalization
0 commit comments