Skip to content

Commit

Permalink
Add i18n support for command titles and config descriptions. (vscode-…
Browse files Browse the repository at this point in the history
  • Loading branch information
JimiC authored and robertohuertasm committed Mar 3, 2017
1 parent 402ae18 commit 0138d9a
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 23 deletions.
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Dockerfile
.gitignore
.gitattributes
.travis.yml
package.nls.template.json
tsconfig.json
tslint.json
npm-debug.*
Expand Down
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,117 +52,117 @@
"commands": [
{
"command": "extension.regenerateIcons",
"title": "Apply Icons Customization",
"title": "%command.regenerateIcons.title%",
"category": "Icons"
},
{
"command": "extension.ngPreset",
"title": "Toggle Angular Preset (Workspace Level)",
"title": "%command.ngPreset.title%",
"category": "Icons"
},
{
"command": "extension.jsPreset",
"title": "Toggle Official JS Preset (User Level)",
"title": "%command.jsPreset.title%",
"category": "Icons"
},
{
"command": "extension.tsPreset",
"title": "Toggle Official TS Preset (User Level)",
"title": "%command.tsPreset.title%",
"category": "Icons"
},
{
"command": "extension.jsonPreset",
"title": "Toggle Official JSON Preset (User Level)",
"title": "%command.jsonPreset.title%",
"category": "Icons"
},
{
"command": "extension.hideFoldersPreset",
"title": "Toggle Folder Icons Visibility (User Level)",
"title": "%command.hideFoldersPreset.title%",
"category": "Icons"
},
{
"command": "extension.restoreIcons",
"title": "Restore Default Icon Manifest",
"title": "%command.restoreIcons.title%",
"category": "Icons"
},
{
"command": "extension.resetProjectDetectionDefaults",
"title": "Reset Project Detection Defaults",
"title": "%command.resetProjectDetectionDefaults.title%",
"category": "Icons"
}
],
"configuration": {
"title": "vscode-icons configuration",
"title": "%configuration.title%",
"properties": {
"vsicons.dontShowNewVersionMessage": {
"type": "boolean",
"default": false,
"description": "If set to true the new version message won't be shown anymore."
"description": "%configuration.dontShowNewVersionMessage.description%"
},
"vsicons.projectDetection.autoReload": {
"type": "boolean",
"default": false,
"description": "If set to true the extension will restart automatically on project detection"
"description": "%configuration.projectDetection.autoReload.description%"
},
"vsicons.projectDetection.disableDetect": {
"type": "boolean",
"default": false,
"description": "If set to true the extension will disable the project detection"
"description": "%configuration.projectDetection.disableDetect.description%"
},
"vsicons.presets.angular": {
"type": "boolean",
"default": false,
"description": "If set to true the extension will match some of the common Angular patterns"
"description": "%configuration.presets.angular.description%"
},
"vsicons.presets.jsOfficial": {
"type": "boolean",
"default": false,
"description": "If set to true the extension will use the official JS icon"
"description": "%configuration.presets.jsOfficial.description%"
},
"vsicons.presets.tsOfficial": {
"type": "boolean",
"default": false,
"description": "If set to true the extension will use the official TS icon"
"description": "%configuration.presets.tsOfficial.description%"
},
"vsicons.presets.jsonOfficial": {
"type": "boolean",
"default": false,
"description": "If set to true the extension will use the official JSON icon"
"description": "%configuration.presets.jsonOfficial.description%"
},
"vsicons.presets.hideFolders": {
"type": "boolean",
"default": false,
"description": "If set to true all folders will be hidden"
"description": "%configuration.presets.hideFolders.description%"
},
"vsicons.associations.files": {
"type": "array",
"default": [],
"description": "These custom associations will override the file icon associations defined by default."
"description": "%configuration.associations.files.description%"
},
"vsicons.associations.folders": {
"type": "array",
"default": [],
"description": "These custom associations will override the folder icon associations defined by default."
"description": "%configuration.associations.folders.description%"
},
"vsicons.associations.fileDefault.file": {
"type": "object",
"default": null,
"description": "This setting will let you change default dark file icon."
"description": "%configuration.associations.fileDefault.file.description%"
},
"vsicons.associations.fileDefault.file_light": {
"type": "object",
"default": null,
"description": "This setting will let you change default light file icon."
"description": "%configuration.associations.fileDefault.file_light.description%"
},
"vsicons.associations.folderDefault.folder": {
"type": "object",
"default": null,
"description": "This setting will let you change default dark folder icon."
"description": "%configuration.associations.folderDefault.folder.description%"
},
"vsicons.associations.folderDefault.folder_light": {
"type": "object",
"default": null,
"description": "This setting will let you change default light folder icon."
"description": "%configuration.associations.folderDefault.folder_light.description%"
}
}
}
Expand Down
25 changes: 25 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"command.regenerateIcons.title": "Apply Icons Customization",
"command.ngPreset.title": "Toggle Angular Preset (Workspace Level)",
"command.jsPreset.title": "Toggle Official JS Preset (User Level)",
"command.tsPreset.title": "Toggle Official TS Preset (User Level)",
"command.jsonPreset.title": "Toggle Official JSON Preset (User Level)",
"command.hideFoldersPreset.title": "Toggle Folder Icons Visibility (User Level)",
"command.restoreIcons.title": "Restore Default Icon Manifest",
"command.resetProjectDetectionDefaults.title": "Reset Project Detection Defaults",
"configuration.title": "vscode-icons configuration",
"configuration.dontShowNewVersionMessage.description": "If set to true, the new version message won't be shown anymore.",
"configuration.projectDetection.autoReload.description": "If set to true, the extension will restart automatically on project detection.",
"configuration.projectDetection.disableDetect.description": "If set to true, the extension will disable the project detection.",
"configuration.presets.angular.description": "If set to true, the extension will match some of the common Angular patterns.",
"configuration.presets.jsOfficial.description": "If set to true, the extension will use the official JS icon.",
"configuration.presets.tsOfficial.description": "If set to true, the extension will use the official TS icon.",
"configuration.presets.jsonOfficial.description": "If set to true, the extension will use the official JSON icon.",
"configuration.presets.hideFolders.description": "If set to true, all folders will be hidden.",
"configuration.associations.files.description": "These custom associations will override the file icon associations defined by default.",
"configuration.associations.folders.description": "These custom associations will override the folder icon associations defined by default.",
"configuration.associations.fileDefault.file.description": "This setting will let you change default dark file icon.",
"configuration.associations.fileDefault.file_light.description": "This setting will let you change default light file icon.",
"configuration.associations.folderDefault.folder.description": "This setting will let you change default dark folder icon.",
"configuration.associations.folderDefault.folder_light.description": "This setting will let you change default light folder icon."
}
25 changes: 25 additions & 0 deletions package.nls.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"command.regenerateIcons.title": "",
"command.ngPreset.title": "",
"command.jsPreset.title": "",
"command.tsPreset.title": "",
"command.jsonPreset.title": "",
"command.hideFoldersPreset.title": "",
"command.restoreIcons.title": "",
"command.resetProjectDetectionDefaults.title": "",
"configuration.title": "",
"configuration.dontShowNewVersionMessage.description": "",
"configuration.projectDetection.autoReload.description": "",
"configuration.projectDetection.disableDetect.description": "",
"configuration.presets.angular.description": "",
"configuration.presets.jsOfficial.description": "",
"configuration.presets.tsOfficial.description": "",
"configuration.presets.jsonOfficial.description": "",
"configuration.presets.hideFolders.description": "",
"configuration.associations.files.description": "",
"configuration.associations.folders.description": "",
"configuration.associations.fileDefault.file.description": "",
"configuration.associations.fileDefault.file_light.description": "",
"configuration.associations.folderDefault.folder.description": "",
"configuration.associations.folderDefault.folder_light.description": ""
}

0 comments on commit 0138d9a

Please sign in to comment.