Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PowerShell LocalizationNew to Visual Studio Code? Get it now.
PowerShell Localization

PowerShell Localization

PSInclusive

|
4 installs
| (0) | Free
View PowerShell localization variables inline.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PowerShell Localization

A Visual Studio Code extension that displays PowerShell localization variable values as decorations in your editor, making it easier to develop and debug internationalized PowerShell modules.

Example showing the inline decorator

Features

  • Live Decoration Display: View localization variable values as decorations directly in your PowerShell files during code writing (Error Lens style)
  • Real-time Updates: Values update automatically when localization files
    change
  • Multi-language Support: Works with all localization files (en-US, fr-FR, etc.)
  • PowerShell Integration: Seamlessly integrates with PowerShell module development workflow
  • Debug Support: Optional inline values during debugging sessions

How It Works

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 as a decoration next to your code.

Requirements

  • Visual Studio Code 1.102.0 or higher
  • PowerShell modules with localization data files

Extension Settings

This extension contributes the following settings:

Setting Description Default Options
powershellLocalization.enableDecorations Enable/disable decoration display of localization variable values during code writing true true, false
powershellLocalization.enableInlineValues Enable/disable inline display of localization variable values during debugging false true, false
powershellLocalization.searchExclude Configure glob patterns for excluding directories and files from PowerShell module scanning Excludes node_modules, out, dist, and .git directories Array of glob patterns
powershellLocalization.logLevel Set the logging level for the extension info error, warn, info, debug
powershellLocalization.uiCulture Specify the UI culture for PowerShell localization data en-US Language codes like en-US, fr-FR, de-DE

Installation

  1. Package the extension using the provided scripts
  2. Install the .vsix file in VS Code
  3. Reload VS Code to activate the extension

Development

To build and install this extension:

# Using pwsh (all OS's)
./build.ps1 -Task Test
# Use the -Bootstrap flag to install all the dependancies.
./build.ps1 -Task Test -Bootstrap
# You can also list all the available tasks with -Help
./build.ps1 -Help
# To install a local build
./build.ps1 -Task Install

Usage

  1. Open a PowerShell module (.psm1 file) that uses localization
  2. Ensure you have localization data files in language folders (e.g., en-US/ModuleName.psd1)
  3. Reference localization variables in your code: $LocalizedData.MessageText
  4. The extension will display the actual localized values inline

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft