A VSCode extension that switch multilingual content files with shortcut key and command pallet.
Available commands:
"commands": [
{
"command": "com.github.chick-p.vscode-toggle-multilingual-content.toggle",
"title": "Toggle Multilingual Content File"
}
],
"keybindings": [
{
"mac": "cmd+9",
"key": "ctrl+9",
"command": "com.github.chick-p.vscode-toggle-multilingual-content.toggle"
}
]
Available settings:
// The language list
"vscode-toggle-multilingual-content.languages": [
"ja",
"en",
"zh",
"zh-tw"
],
// The directory list of content file
"vscode-toggle-multilingual-content.contentPatterns": [
"content/<lang>/",
"static/img-<lang>/"
]
This extension is not available on VSCode Marketplace.
Install locally:
The extension file can be downloaded from [Assets] in Releases page.
Install the extension into your VSCode by following command.
code --install-extension vscode-toggle-multilingual-content-0.2.1.vsix
The following command packages the extension directory to generate vsix files.
pnpm install
pnpm dlx vsce package