Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have all command strings be localized #236

Merged
merged 1 commit into from
Jul 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,38 +51,46 @@
"commands": [
{
"command": "livePreview.start",
"title": "%commands.startserver%"
"title": "%commands.startServer%",
"category": "%commands.category%"
},
{
"command": "livePreview.start.preview.atFile",
"title": "Live Preview: Show Preview",
"title": "%commands.showPreview%",
"category": "%commands.category%",
"icon": "$(open-preview)"
},
{
"command": "livePreview.start.debugPreview.atFile",
"title": "Live Preview: Show Debug Preview",
"title": "%commands.showDebugPreview%",
"category": "%commands.category%",
"icon": "$(debug-alt)"
},
{
"command": "livePreview.start.externalPreview.atFile",
"title": "Live Preview: Show Preview (External Browser)"
"title": "%commands.showPreviewExternalBrowser%",
"category": "%commands.category%"
},
{
"command": "livePreview.start.externalDebugPreview.atFile",
"title": "Live Preview: Show Debug Preview (External Browser)",
"title": "%commands.showDebugPreviewExternalBrowser%",
"category": "%commands.category%",
"icon": "$(debug-alt)"
},
{
"command": "livePreview.start.internalPreview.atFile",
"title": "Live Preview: Show Preview (Internal Browser)"
"title": "%commands.showPreviewInternalBrowser%",
"category": "%commands.category%"
},
{
"command": "livePreview.setDefaultOpenFile",
"title": "Live Preview: Open Automatically on Server Start"
"title": "%commands.openAutomaticallyOnServerStart%",
"category": "%commands.category%"
},
{
"command": "livePreview.end",
"title": "Live Preview: Stop Server"
"title": "%commands.stopServer%",
"category": "%commands.category%"
}
],
"menus": {
Expand Down
10 changes: 9 additions & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"commands.startserver": "Live Preview: Start Server"
"commands.category": "Live Preview",
"commands.startServer": "Start Server",
"commands.showPreview": "Show Preview",
"commands.showDebugPreview": "Show Debug Preview",
"commands.showPreviewExternalBrowser": "Show Preview (External Browser)",
"commands.showDebugPreviewExternalBrowser": "Show Debug Preview (External Browser)",
"commands.showPreviewInternalBrowser": "Show Preview (Internal Browser)",
"commands.openAutomaticallyOnServerStart": "Open Automatically on Server Start",
"commands.stopServer": "Stop Server"
}