1.0.10 • Published 5 months ago
i18n-key-copier v1.0.10
i18n Key Copier
Overview
i18n Key Copier is a lightweight Visual Studio Code extension that allows you to easily copy internationalization (i18n) key paths from JSON and YAML files. With a simple right-click or a Command Palette invocation, you can extract a fully qualified key (e.g., home.welcome.title
) and copy it to your clipboard, streamlining your i18n workflow.
Features
- Extract i18n Key Paths: Automatically generate a dot-notated key (e.g.,
home.welcome.title
) from your JSON or YAML files. - Context Menu Integration: Access the command by right-clicking in your editor.
- Command Palette Access: Invoke the command using the Command Palette.
- Language Support: Works with JSON, YAML, and YML files.
Installation
Via Visual Studio Code Marketplace
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar or pressing
Ctrl+Shift+X
(Windows/Linux) orCmd+Shift+X
(macOS). - Search for i18n Key Copier.
- Click Install on the extension published by
khaledoghli
.
From a VSIX Package
- Download the
.vsix
file from the Releases page of the repository. - In Visual Studio Code, open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
). - Run the command
Extensions: Install from VSIX...
and select the downloaded file.
Usage
Open a File: Open a JSON or YAML file containing your i18n keys. For example:
home: welcome: title: "Hello from home"