GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PSInclusive/PowerShellLocalization: VSCode extension that renders Localization text as an inline decorator.

BranchesTags
Open more actions menu

Latest commit

 

History

30 Commits
30 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
resources
resources
 
 
src
src
 
 
static
static
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.vscode-test.mjs
.vscode-test.mjs
 
 
.vscodeignore
.vscodeignore
 
 
.yarnrc
.yarnrc
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
PACKAGING.md
PACKAGING.md
 
 
README.md
README.md
 
 
build.ps1
build.ps1
 
 
cspell.json
cspell.json
 
 
eslint.config.mjs
eslint.config.mjs
 
 
package.json
package.json
 
 
psake.ps1
psake.ps1
 
 
requirements.psd1
requirements.psd1
 
 
tsconfig.json
tsconfig.json
 
 
vsc-extension-quickstart.md
vsc-extension-quickstart.md
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

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

Commands

Example showing the commands in action

This extension contributes the following commands that can be accessed via the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):

Command Description
PowerShell Localization: Switch UI Culture Change the UI culture for displaying localization values
PowerShell Localization: Set UI Culture to English (en-US) Set the UI culture to English (en-US)
PowerShell Localization: Set UI Culture to French (fr-FR) Set the UI culture to French (fr-FR)

Installation

Installing from the marketplace is the best option: Visual Studio Marketplace

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

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

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

Contributing

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

License

MIT

About

VSCode extension that renders Localization text as an inline decorator.

marketplace.visualstudio.com/items?itemName=PSInclusive.powershelllocalization

Topics

localizationpowershellvscode-extension

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.