|
1 | | -# powershelllocalization README |
| 1 | +# PowerShell Localization |
2 | 2 |
|
3 | | -This is the README for your extension "powershelllocalization". After writing up a brief description, we recommend including the following sections. |
| 3 | +A Visual Studio Code extension that displays PowerShell localization variable values inline in your editor, making it easier to develop and debug internationalized PowerShell modules. |
4 | 4 |
|
5 | 5 | ## Features |
6 | 6 |
|
7 | | -Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file. |
| 7 | +- **Inline Value Display**: View localization variable values directly in your PowerShell files |
| 8 | +- **Real-time Updates**: Values update automatically when localization files change |
| 9 | +- **Multi-language Support**: Works with all localization files (en-US, fr-FR, etc.) |
| 10 | +- **PowerShell Integration**: Seamlessly integrates with PowerShell module development workflow |
8 | 11 |
|
9 | | -For example if there is an image subfolder under your extension project workspace: |
| 12 | +## How It Works |
10 | 13 |
|
11 | | -\!\[feature X\]\(images/feature-x.png\) |
12 | | - |
13 | | -> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow. |
| 14 | +The extension automatically scans for PowerShell modules (`.psm1` files) and their associated localization data files (`.psd1` files in language-specific folders like `en-US/`, `fr-FR/`, etc.). When you reference localization variables in your PowerShell code using `$LocalizedData.VariableName`, the extension will display the actual localized value inline. |
14 | 15 |
|
15 | 16 | ## Requirements |
16 | 17 |
|
17 | | -If you have any requirements or dependencies, add a section describing those and how to install and configure them. |
| 18 | +- Visual Studio Code 1.102.0 or higher |
| 19 | +- PowerShell modules with localization data files |
18 | 20 |
|
19 | 21 | ## Extension Settings |
20 | 22 |
|
21 | | -Include if your extension adds any VS Code settings through the `contributes.configuration` extension point. |
22 | | - |
23 | | -For example: |
24 | | - |
25 | 23 | This extension contributes the following settings: |
26 | 24 |
|
27 | | -* `myExtension.enable`: Enable/disable this extension. |
28 | | -* `myExtension.thing`: Set to `blah` to do something. |
29 | | - |
30 | | -## Known Issues |
31 | | - |
32 | | -Calling out known issues can help limit users opening duplicate issues against your extension. |
33 | | - |
34 | | -## Release Notes |
35 | | - |
36 | | -Users appreciate release notes as you update your extension. |
37 | | - |
38 | | -### 1.0.0 |
39 | | - |
40 | | -Initial release of ... |
| 25 | +- `powershelllocalization.enableInlineValues`: Enable/disable inline display of localization variable values |
41 | 26 |
|
42 | | -### 1.0.1 |
| 27 | +## Installation |
43 | 28 |
|
44 | | -Fixed issue #. |
| 29 | +1. Package the extension using the provided scripts |
| 30 | +2. Install the `.vsix` file in VS Code |
| 31 | +3. Reload VS Code to activate the extension |
45 | 32 |
|
46 | | -### 1.1.0 |
| 33 | +## Development |
47 | 34 |
|
48 | | -Added features X, Y, and Z. |
| 35 | +To build and install this extension: |
49 | 36 |
|
50 | | ---- |
| 37 | +```bash |
| 38 | +# Using PowerShell script |
| 39 | +.\package-and-install.ps1 |
51 | 40 |
|
52 | | -## Following extension guidelines |
| 41 | +# Using npm scripts |
| 42 | +yarn package-install |
53 | 43 |
|
54 | | -Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension. |
| 44 | +# Package only |
| 45 | +yarn package-only |
| 46 | +``` |
55 | 47 |
|
56 | | -* [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines) |
| 48 | +## Usage |
57 | 49 |
|
58 | | -## Working with Markdown |
| 50 | +1. Open a PowerShell module (`.psm1` file) that uses localization |
| 51 | +2. Ensure you have localization data files in language folders (e.g., `en-US/ModuleName.psd1`) |
| 52 | +3. Reference localization variables in your code: `$LocalizedData.MessageText` |
| 53 | +4. The extension will display the actual localized values inline |
59 | 54 |
|
60 | | -You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts: |
| 55 | +## Contributing |
61 | 56 |
|
62 | | -* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux). |
63 | | -* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux). |
64 | | -* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets. |
| 57 | +Contributions are welcome! Please feel free to submit issues and pull requests. |
65 | 58 |
|
66 | | -## For more information |
| 59 | +## License |
67 | 60 |
|
68 | | -* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown) |
69 | | -* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/) |
| 61 | +MIT |
70 | 62 |
|
71 | 63 | **Enjoy!** |
0 commit comments