Overview Version History Q & A Rating & Review
VS Code i18n Assistant
A Visual Studio Code extension that helps you manage internationalization (i18n) in your projects. This extension simplifies the process of creating and maintaining internationalized text by providing easy conversion of selected text into i18n formats and syncing with remote i18n resources.
Features
Convert selected text to i18n plain text format with a keyboard shortcut (Cmd+Alt+I / Ctrl+Alt+I)
Convert selected text to i18n plural format with a keyboard shortcut (Cmd+Alt+P / Ctrl+Alt+P)
Sync your i18n resources with remote translation services
Context menu integration for quick access to i18n conversion tools
Command palette support for all operations
Installation
Install from the Visual Studio Code Marketplace
Restart VS Code
Usage
Converting Text to i18n Format
Select the text you want to convert in your editor
Use one of these methods to convert:
Press Cmd+Alt+I
(Mac) or Ctrl+Alt+I
(Windows/Linux) for plain text
Press Cmd+Alt+P
(Mac) or Ctrl+Alt+P
(Windows/Linux) for plural format
Right-click and select "Convert text to hub i18n" from the context menu
Use the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and search for "i18n as plain text" or "i18n as plural"
Syncing i18n Resources
Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
Search for "Sync i18n resources with remote"
Execute the command
Configuration
This extension provides the following settings:
myVscodeExtension.apiKey
: API Key for external service integration
myVscodeExtension.preferredLanguage
: Preferred language for i18n records (default: "en")
To configure these settings:
Open VS Code settings (Cmd+, / Ctrl+,)
Search for "My VSCode Extension"
Update the settings as needed
Development
Clone this repository
Run yarn install
to install dependencies
Press F5 to open a new window with your extension loaded
Run your commands from the command palette or use the configured keyboard shortcuts
Set breakpoints in your code inside src/extension.ts
to debug your extension
Building the Extension
Run yarn package
to create a .vsix
file that can be installed in VS Code
Deployment
This extension can be automatically deployed to the VS Code Marketplace using GitHub Actions:
Create a Personal Access Token (PAT) in the Visual Studio Marketplace
Add this token as a repository secret in GitHub with the name VSCODE_MARKETPLACE_TOKEN
Create a new tag with git tag v0.0.1
(match your version in package.json)
Push the tag with git push --tags
The GitHub Action will automatically deploy the extension to the marketplace
Release Notes
0.0.1
Initial release with core functionality:
Convert text to i18n plain text format
Convert text to i18n plural format
Sync i18n resources with remote
Context menu and command palette integration