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

LRM - .NET Localization

nickprotop

|
8 installs
| (0) | Free
Manage .NET .resx localization files with real-time validation, translation, and code scanning
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Localization Manager

Manage .NET .resx localization files with real-time validation, translation, and code scanning.

Dashboard

Features

Dashboard

View translation coverage, validation issues, and quick actions at a glance.

Resource Editor

Edit all languages side-by-side with search, filtering, and bulk actions.

Resource Editor

Real-time Code Diagnostics

Get inline warnings for missing localization keys as you type.

Quick Fix

IntelliSense Autocomplete

Get autocomplete suggestions for localization keys as you type. Supports Resources., GetString(", _localizer[" and more patterns.

Autocomplete

Code Scanning

Find missing and unused keys across your codebase.

Code Scan

CodeLens

Get inline information and actions directly in your code.

In .resx files (above each key):

  • Reference count (e.g., "12 references") - click to see all usages
  • Language coverage (e.g., "3/5 languages") - click to see missing translations
  • Quick translate action
  • Warnings for unused or duplicate keys

In code files (.cs, .razor, .xaml, .cshtml):

  • Key value preview (e.g., "Welcome to our app")
  • Missing language warnings - click to translate
  • Click to open the key in Resource Editor

Key References

See exactly where each key is used in your code.

References

Resource Tree

Browse keys organized by resource file in the Explorer sidebar.

Tree View

Translation

Translate missing values using free or paid providers.

  • Free (no API key): Lingva, MyMemory
  • Free (local AI): Ollama - run AI translation locally, completely free and private
  • Paid: Google, Azure, AWS, DeepL, OpenAI, Anthropic

Requirements

  • VS Code 1.80+
  • Workspace with .NET .resx files

Quick Start

  1. Install the extension
  2. Open a workspace containing .resx files
  3. The extension auto-detects resources and starts the backend
  4. Use Command Palette (Ctrl+Shift+P) → "LRM:" commands

Commands

Command Description
LRM: Open Dashboard View coverage and validation status
LRM: Open Resource Editor Edit resources in web UI
LRM: Validate Resources Check for issues
LRM: Scan Code Find missing/unused keys
LRM: Add Key Add new localization key
LRM: Translate Missing Values Auto-translate
LRM: Set Resource Path Configure resource location

Settings

Setting Description Default
lrm.resourcePath Path to .resx folder Auto-detected
lrm.translationProvider Default provider mymemory
lrm.enableRealtimeScan Live diagnostics true
lrm.scanOnSave Scan on file save true
lrm.enableCodeLens Show CodeLens annotations true
lrm.codeLens.showReferences Show reference count true
lrm.codeLens.showCoverage Show language coverage true
lrm.codeLens.showTranslate Show translate action true
lrm.codeLens.showValue Show key value in code true

Configuration & API Keys

LRM stores configuration in two places:

1. VS Code Settings

Extension-specific settings stored in VS Code workspace settings:

  • Resource path, scanning options, file type filters
  • These are VS Code-only and don't affect CLI usage

2. lrm.json (Project Configuration)

Shared configuration file for both VS Code extension and CLI:

  • Translation provider settings, AI model configurations
  • Scanning patterns, validation rules
  • Located in your resource folder

API Key Storage

API keys can be configured in three ways (in priority order):

Method Security Shared with CLI
Environment Variables High Yes
Secure Credential Store High (AES-256 encrypted) Yes
lrm.json Low (plain text) Yes

Environment Variables (Recommended for CI/CD)

export LRM_GOOGLE_API_KEY="your-key"
export LRM_OPENAI_API_KEY="your-key"
export LRM_DEEPL_API_KEY="your-key"

Secure Credential Store (Recommended for Development)

API keys are encrypted with AES-256 and stored locally:

  • Windows: %LOCALAPPDATA%\LocalizationManager\credentials.json
  • Linux: ~/.local/share/LocalizationManager/credentials.json
  • macOS: ~/.local/share/LocalizationManager/credentials.json

Enable in Settings panel or via CLI:

lrm config set-api-key --provider google --key "your-key"

The encryption uses machine-specific keys, so credentials cannot be copied between machines.

Plain Text in lrm.json (Not Recommended)

{
  "Translation": {
    "ApiKeys": {
      "Google": "your-key-here"
    }
  }
}

Warning: Add lrm.json to .gitignore if storing API keys in plain text.

Settings Panel

Use LRM: Open Settings to configure:

  • Translation providers and API keys
  • AI model settings (OpenAI, Claude, Ollama, etc.)
  • Code scanning patterns
  • Validation rules

The Settings panel shows where each API key is configured (environment, secure store, or config file) and allows testing provider connections.

Troubleshooting

  • Backend won't start: Check "LRM Backend" output channel
  • Resources not detected: Use "LRM: Set Resource Path"
  • Translation fails: Free providers need no setup; paid need API keys

Release Notes

0.6.17

See CHANGELOG

License

MIT - Nikolaos Protopapas

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