Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
use local var
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Sep 7, 2024
1 parent 586b687 commit 8d8812c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions en/readme.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"header.img_rating": "Rating",
"header.img_installs": "Installs",
"header.img_downloads": "Downloads",
"description": "Add multiple background images for the window, editors, sidebars, or the panel. Load backgrounds from file, [glob](https://github.com/isaacs/node-glob#glob-primer), or URL. Transition between multiple background images.",
"description": "Add multiple background images for the window, editors, sidebars, or the panel. Load backgrounds from file, [glob]({0}), or URL. Transition between multiple background images.",
"installation._": "Installation",
"installation.description": " - Install from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=katsute.code-background).\n - Install directly from VSCode using the id [`katsute.code-background`](https://marketplace.visualstudio.com/items?itemName=katsute.code-background).",
"installation.description": " - Install from the [Visual Studio Marketplace]({0}).\n - Install directly from VSCode using the id {1}.",
"installation.usage._": "Usage",
"installation.usage.description": " 1. Type `Background: Configuration` in the command pallette or press the **Background** tab in the statusbar.\n 2. Select where you want to add a background (Window, Editor, Sidebar, Panel).\n 3. Add backgrounds and change how it should be displayed.\n 4. Use `Background: Install` or press the install button.",
"features._": "Features",
Expand All @@ -18,7 +18,7 @@
"features.configuration._": "Configuration Menu",
"features.configuration.description": "Type `Background: Configuration` in the command pallette or press the **Background** tab in the statusbar to access the configuration menu.",
"features.path._": "Glob, URL, and Environment Variable Support",
"features.path.description": "Add background images by file, folder, [glob](https://github.com/isaacs/node-glob#glob-primer), or URL.\n\n> ⚠️ **Use only `/` for directories**\n>\n> [node-glob](https://github.com/isaacs/node-glob#windows) only accepts `/` as path separators, `\\` is reserved for escape characters.",
"features.path.description": "Add background images by file, folder, [glob]({0}), or URL.\n\n> ⚠️ **Use only `/` for directories**\n>\n> [node-glob]({1}) only accepts `/` as path separators, `\\` is reserved for escape characters.",
"commands._": "Commands",
"commands.table_command": "Command",
"commands.table_description": "Description",
Expand All @@ -33,24 +33,24 @@
"environment.desc_workspace": "Current VSCode project folder",
"environment.desc_home": "Current user's home directory",
"environment.desc_env": "System environment variable",
"license": "This extension is released under the [GNU General Public License (GPL) v2.0](https://github.com/KatsuteDev/Background/blob/main/LICENSE).",
"help.commonIssues": "Common Issues",
"license": "This extension is released under the {0}.",
"help._": "Common Issues",
"help.corrupt._": "Code installation is corrupt",
"help.corrupt.description": "This warning may appear after running the uninstall command, reopen VSCode for this to disappear.\n\nIf this warning still appears after an uninstall, reinstall [VSCode](https://code.visualstudio.com/download).",
"help.fix._": "VSCode stopped working [#46](https://github.com/KatsuteDev/Background/issues/46)",
"help.fix.description": "This extension modifies an internal file to make backgrounds work, if VSCode stops working replace `%LocalAppData%\\Programs\\Microsoft VS Code\\resources\\app\\out\\vs\\workbench\\workbench.desktop.main.js` with `workbench.desktop.main-backup.js`.\n\nThis extension also modifies `%LocalAppData%\\Programs\\Microsoft VS Code\\resources\\app\\product.json`, replace with `product-backup.json` if VSCode stops working.",
"help.corrupt.description": "This warning may appear after running the uninstall command, reopen VSCode for this to disappear.\n\nIf this warning still appears after an uninstall, reinstall [VSCode]({0}).",
"help.fix._": "VSCode stopped working {0}",
"help.fix.description": "This extension modifies an internal file to make backgrounds work, if VSCode stops working replace `{0}` with `{1}`.\n\nThis extension also modifies `{2}`, replace with `{3}` if VSCode stops working.",
"help.missing._": "Backgrounds are missing on workspace",
"help.missing.description": "The workspace setting will use whatever settings are set for that workspace, it does not fallback to the global setting.",
"help.inverted._": "Opacity is inverted",
"help.inverted.description": "As of 3.0.0, opacity has been switched from 0 visible and 1 invisible to 1 visible and 0 invisible, use the **useInvertedOpacity** option if you want the old behavior.",
"help.uninstall._": "Disable/uninstall doesn't remove background",
"help.uninstall.description": "Backgrounds are not removed on extension disable or uninstall, you must run the **Background: Uninstall** command to remove backgrounds.",
"help.window._": "Background doesn't work on window buttons (minimize/maximize/close) [#178](https://github.com/KatsuteDev/Background/issues/178)",
"help.window._": "Background doesn't work on window buttons (minimize/maximize/close) {0}",
"help.window.description": "These buttons are controlled by the system and not VSCode; and can not be modified by this extension.",
"help.wsl._": "(Windows) Doesn't work on WSL [#27](https://github.com/KatsuteDev/Background/issues/27#issuecomment-1233610914)",
"help.wsl._": "(Windows) Doesn't work on WSL {0}",
"help.wsl.description": "Backgrounds can not be changed while running this extension in a remote WSL window. Backgrounds must be changed by making changes in the main VSCode window, then opening the remote WSL window.",
"help.readonly._": "(Mac) read-only file system [#76](https://github.com/KatsuteDev/Background/issues/76)",
"help.readonly.description": "This extension doesn't natively support Mac, write permissions must be granted to the VSCode application:\n\n1. Move `Visual Studio Code.app` from `Download` to the `Application` directory.\n2. Run `sudo chmod -R a+rwx '/Applications/Visual Studio Code.app'` to grant write permissions.",
"help.snap._": "(Linux) snap: read-only file system [#140](https://github.com/KatsuteDev/Background/issues/140#issuecomment-1503820398)",
"help.snap.description": "Applications installed using [snap](https://snapcraft.io/) are inherently read-only, install VSCode using [deb](https://code.visualstudio.com/download) or [rpm](https://code.visualstudio.com/download)."
"help.readonly._": "(Mac) read-only file system {0}",
"help.readonly.description": "This extension doesn't natively support Mac, write permissions must be granted to the VSCode application:\n\n1. Move `{0}` from `{1}` to the `{2}` directory.\n2. Run `{3}` to grant write permissions.",
"help.snap._": "(Linux) snap: read-only file system {0}",
"help.snap.description": "Applications installed using [snap]({0}) are inherently read-only, install VSCode using [deb]({1}) or [rpm]({1})."
}
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const translations = JSON.parse(fs.readFileSync(path.join(__dirname, "en", "tran

let error = false;

const wildcard = (str) => ((str ?? "").match(/{[a-zA-Z0-9]+}/g) ?? []).length;
const wildcard = (str) => ((str ?? "").match(/{\d+}/g) ?? []).length;

for(const folder of fs.readdirSync(__dirname).filter(f => !f.includes('.') && f !== "en")){
/* readme */ {
Expand Down

0 comments on commit 8d8812c

Please sign in to comment.