Skip to content

Commit

Permalink
localize package
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Sep 28, 2024
1 parent c76ee0d commit 8a953b6
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 28 deletions.
72 changes: 44 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"order": 0,
"properties": {
"background.windowBackgrounds": {
"markdownDescription": "The list of files, globs, or URLs to pull background images from.\n\n* Use only `/` for directories, `\\` is reserved for escape characters.\n\n* Image URLs must be served over HTTPS",
"markdownDescription": "%background.configuration.backgroundDescriptionription%",
"type": "array",
"order": 0,
"default": [],
Expand All @@ -78,7 +78,7 @@
}
},
"background.editorBackgrounds": {
"markdownDescription": "The list of files, globs, or URLs to pull background images from.\n\n* Use only `/` for directories, `\\` is reserved for escape characters.\n\n* Image URLs must be served over HTTPS",
"markdownDescription": "%background.configuration.backgroundDescriptionription%",
"type": "array",
"order": 1,
"default": [],
Expand All @@ -87,7 +87,7 @@
}
},
"background.sidebarBackgrounds": {
"markdownDescription": "The list of files, globs, or URLs to pull background images from.\n\n* Use only `/` for directories, `\\` is reserved for escape characters.\n\n* Image URLs must be served over HTTPS",
"markdownDescription": "%background.configuration.backgroundDescriptionription%",
"type": "array",
"order": 2,
"default": [],
Expand All @@ -96,7 +96,7 @@
}
},
"background.panelBackgrounds": {
"markdownDescription": "The list of files, globs, or URLs to pull background images from.\n\n* Use only `/` for directories, `\\` is reserved for escape characters.\n\n* Image URLs must be served over HTTPS",
"markdownDescription": "%background.configuration.backgroundDescriptionription%",
"type": "array",
"order": 3,
"default": [],
Expand All @@ -105,7 +105,7 @@
}
},
"background.backgroundAlignment": {
"markdownDescription": "Background alignment",
"markdownDescription": "%background.configuration.alignment%",
"type": "array",
"order": 4,
"default": [
Expand All @@ -129,11 +129,23 @@
"Bottom Center",
"Bottom Right",
"Manual"
],
"enumDescriptions": [
"%background.configuration.alignment.top_left%",
"%background.configuration.alignment.top_center%",
"%background.configuration.alignment.top_right%",
"%background.configuration.alignment.center_left%",
"%background.configuration.alignment.center_center%",
"%background.configuration.alignment.center_right%",
"%background.configuration.alignment.bottom_left%",
"%background.configuration.alignment.bottom_center%",
"%background.configuration.alignment.bottom_right%",
"%background.configuration.alignment.manual%"
]
}
},
"background.backgroundAlignmentValue": {
"markdownDescription": "Background alignment (CSS)",
"markdownDescription": "%background.configuration.alignmentValue%",
"type": "array",
"order": 5,
"default": [
Expand All @@ -150,7 +162,7 @@
}
},
"background.backgroundBlur": {
"markdownDescription": "Background blur (CSS)",
"markdownDescription": "%background.configuration.blurDescription%",
"type": "array",
"order": 6,
"default": [
Expand All @@ -167,7 +179,7 @@
}
},
"background.backgroundOpacity": {
"markdownDescription": "The background opacity.\n\n`1` is fully visible and `0` is invisible. If `#background.useInvertedOpacity#` is true, this logic is inverted",
"markdownDescription": "%background.configuration.opacityDescription%",
"type": "array",
"order": 7,
"default": [
Expand All @@ -185,7 +197,7 @@
}
},
"background.backgroundRepeat": {
"markdownDescription": "Background repeat",
"markdownDescription": "%background.configuration.repeatDescription%",
"type": "array",
"order": 8,
"default": [
Expand All @@ -207,17 +219,17 @@
"Repeat Round"
],
"enumDescriptions": [
"Do not repeat",
"Repeat X/Y",
"Repeat X",
"Repeat Y",
"Repeat with even spacing to fill the screen",
"Repeat and stretch images to fill the screen"
"%background.configuration.repeat.no_repeat%",
"%background.configuration.repeat.repeat%",
"%background.configuration.repeat.repeat_x%",
"%background.configuration.repeat.repeat_y%",
"%background.configuration.repeat.repeat_space%",
"%background.configuration.repeat.repeat_round%"
]
}
},
"background.backgroundSize": {
"markdownDescription": "Background size",
"markdownDescription": "%background.configuration.sizeDescription%",
"type": "array",
"order": 9,
"default": [
Expand All @@ -237,15 +249,15 @@
"Manual"
],
"enumDescriptions": [
"Original image size",
"Fit image to the screen",
"Stretch image to fill the screen",
"Manual size"
"%background.configuration.size.auto%",
"%background.configuration.size.contain%",
"%background.configuration.size.cover%",
"%background.configuration.size.manual%"
]
}
},
"background.backgroundSizeValue": {
"markdownDescription": "Background size (CSS)",
"markdownDescription": "%background.configuration.sizeValue%",
"type": "array",
"order": 10,
"default": [
Expand All @@ -262,7 +274,7 @@
}
},
"background.backgroundChangeTime": {
"markdownDescription": "How often to change the background image in seconds, set to 0 to never change",
"markdownDescription": "%background.configuration.timeDescription%",
"type": "array",
"order": 11,
"default": [
Expand All @@ -279,41 +291,45 @@
}
},
"background.autoInstall": {
"markdownDescription": "Automatically install backgrounds on startup.\n\nThis option is disabled when you run the uninstall command.",
"markdownDescription": "%background.configuration.autoInstallDescription%",
"order": 12,
"type": "boolean",
"default": false
},
"background.renderContentAboveBackground": {
"markdownDescription": "Show images, PDFs, and markdown previews on top of the background",
"markdownDescription": "%background.configuration.renderContentAboveBackgroundDescription%",
"order": 13,
"type": "boolean",
"default": false
},
"background.useInvertedOpacity": {
"markdownDescription": "Use an inverted opacity, so 0 is visible and 1 is invisible",
"markdownDescription": "%background.configuration.useInvertedOpacityDescription%",
"order": 14,
"type": "boolean",
"default": false
},
"background.smoothImageRendering": {
"markdownDescription": "Use smooth image rendering when resizing images instead of pixelated",
"markdownDescription": "%background.configuration.smoothImageRenderingDescription%",
"order": 15,
"type": "boolean",
"default": false
},
"background.settingScope": {
"markdownDescription": "Where to save background settings - Global or Workspace",
"markdownDescription": "%background.configuration.settingScopeDescription%",
"order": 16,
"type": "string",
"enum": [
"Global",
"Workspace"
],
"enumDescriptions": [
"%background.configuration.settingScopeGlobal%",
"%background.configuration.settingScopeWorkspace%"
],
"default": "Global"
},
"background.CSS": {
"markdownDescription": "Custom CSS",
"markdownDescription": "%background.configuration.CSSDescription%",
"order": 17,
"type": "string",
"editPresentation": "multilineText",
Expand Down
64 changes: 64 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"background.command.install": "Install",
"background.command.uninstall": "Uninstall",
"background.command.reload": "Reload",
"background.command.config": "Configuration",
"background.command.changelog": "Changelog",
"background.command.help": "Help",

"background.configuration.backgroundDescriptionription": "The list of files, globs, or URLs to pull background images from.\n\n* Use only `/` for directories, `\\` is reserved for escape characters.\n\n* Image URLs must be served over HTTPS",
"background.configuration.window": "Window",
"background.configuration.editor": "Editor",
"background.configuration.sidebar": "Sidebar",
"background.configuration.panel": "Panel",

"background.configuration.alignment": "Alignment",
"background.configuration.alignmentDescription": "Background alignment",
"background.configuration.alignment.top_left": "Top Left",
"background.configuration.alignment.top_center": "Top Center",
"background.configuration.alignment.top_right": "Top Right",
"background.configuration.alignment.center_left": "Center Left",
"background.configuration.alignment.center_center": "Center Center",
"background.configuration.alignment.center_right": "Center Right",
"background.configuration.alignment.bottom_left": "Bottom Left",
"background.configuration.alignment.bottom_center": "Bottom Center",
"background.configuration.alignment.bottom_right": "Bottom Right",
"background.configuration.alignment.manual": "Manual",
"background.configuration.alignmentValue": "Alignment (CSS)",
"background.configuration.blur": "Blur",
"background.configuration.blurDescription": "Background blur (CSS)",
"background.configuration.opacity": "Opacity",
"background.configuration.opacityDescription": "The background opacity.\n\n`1` is fully visible and `0` is invisible",
"background.configuration.repeat": "Repeat",
"background.configuration.repeatDescription": "Background repeat",
"background.configuration.repeat.no_repeat": "Do not repeat",
"background.configuration.repeat.repeat": "Repeat X/Y",
"background.configuration.repeat.repeat_x": "Repeat X",
"background.configuration.repeat.repeat_y": "Repeat Y",
"background.configuration.repeat.repeat_space": "Repeat with even spacing to fill the screen",
"background.configuration.repeat.repeat_round": "Repeat and stretch images to fill the screen",
"background.configuration.size": "Size",
"background.configuration.sizeDescription": "Background size",
"background.configuration.size.auto": "Original image size",
"background.configuration.size.contain": "Fit image to the screen",
"background.configuration.size.cover": "Stretch image to fill the screen",
"background.configuration.size.manual": "Manual size",
"background.configuration.sizeValue": "Size (CSS)",
"background.configuration.time": "Change Time",
"background.configuration.timeDescription": "How often to change the background image in seconds, set to 0 to never change",

"background.configuration.autoInstall": "Auto Install",
"background.configuration.autoInstallDescription": "Automatically install backgrounds on startup.\n\nThis option is disabled when you run the uninstall command.",
"background.configuration.renderContentAboveBackground": "Render Content Above Background",
"background.configuration.renderContentAboveBackgroundDescription": "Show images, PDFs, and markdown previews on top of the background",
"background.configuration.useInvertedOpacity": "Use Inverted Opacity",
"background.configuration.useInvertedOpacityDescription": "Use an inverted opacity, so 0 is visible and 1 is invisible",
"background.configuration.smoothImageRendering": "Smooth Image Rendering",
"background.configuration.smoothImageRenderingDescription": "Use smooth image rendering when resizing images instead of pixelated",
"background.configuration.settingScope": "Setting Scope",
"background.configuration.settingScopeDescription": "Where to save background settings - Global or Workspace",
"background.configuration.settingScopeGlobal": "Global",
"background.configuration.settingScopeWorkspace": "Workspace",
"background.configuration.CSS": "CSS",
"background.configuration.CSSDescription": "Custom CSS"
}

0 comments on commit 8a953b6

Please sign in to comment.