diff --git a/CHANGELOG.md b/CHANGELOG.md index c358480..d0ab131 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +### 0.9.28 + +- Update references to eliminate vulnerabilities. +- Register ES, ZH localisation resources for UI [#145](https://github.com/PDConSec/vsc-print/issues/145) + ### 0.9.27 - Fix printing of a selection [#142](https://github.com/PDConSec/vsc-print/issues/142) diff --git a/README.fra.md b/README.fra.md index 853e3fc..1282bee 100644 --- a/README.fra.md +++ b/README.fra.md @@ -116,6 +116,11 @@ L’extension Math+Markdown (installe le plugin KaTeX) nécessite une connexion ## Notes de version +### 0.9.28 + +- Mettre à jour les références pour éliminer les vulnérabilités. +- Enregistrer les ressources de localisation ES et ZH pour l’interface utilisateur [#145](https://github.com/PDConSec/vsc-print/issues/145) + ### 0.9.27 - Corriger l'impression d'une sélection [#142](https://github.com/PDConSec/vsc-print/issues/142) diff --git a/README.md b/README.md index 298ca5c..a0804c2 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,11 @@ The Math+Markdown extension (installs the KaTeX plugin) requires an internet con ## Release Notes +### 0.9.28 + +- Update references to eliminate vulnerabilities. +- Register ES, ZH localisation resources for UI [#145](https://github.com/PDConSec/vsc-print/issues/145) + ### 0.9.27 - Fix printing of a selection [#142](https://github.com/PDConSec/vsc-print/issues/142) diff --git a/how-to-add-a-language.md b/how-to-add-a-language.md index ac2a91c..f13fce4 100644 --- a/how-to-add-a-language.md +++ b/how-to-add-a-language.md @@ -10,8 +10,18 @@ 1. Copy the file `packagei18n.json` from the `/i18n/eng` folder to the folder you just created for your language. 1. Use a UTF8 capable editor (VS Code is a good choice) to edit this file. 1. Replace each English string with your translation. - * Translation of jargon and technical terms is tricky but you are a subject matter expert, so ask yourself: What would I see in my source code? How would I write this in email to another programmer? + * Translation of jargon and technical terms is tricky but you are a subject matter expert, so ask yourself: If I were explaining or naming this in my own language, how would I phrase it? How would I write this in email to another programmer? * DO NOT translate the keys (the property names). +1. Edit the file `src/imports.ts` to register your translation for localisation of the UI. + ``` + const locVal: any = { + "de": require("../out/extension.nls.de.json"), + "en": require("../out/extension.nls.en.json"), + "es": require("../out/extension.nls.es.json"), + "fr": require("../out/extension.nls.fr.json"), + "zh": require("../out/extension.nls.zh.json") + }; + ``` 1. Translate `README.md` and `manual.md` to `README.xyz.md` and `manual.xyz.md` where xyz is your language code. 1. There's probably no point translating _this_ file unless you seriously expect translation from your language to another. 1. Save, stage, commit and push your changes to your fork on GitHub. diff --git a/package.json b/package.json index a7168de..fd66eb9 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-print", "displayName": "Print", "description": "Rendered Markdown, coloured code.", - "version": "0.9.27", + "version": "0.9.28", "icon": "vscode-print-128.png", "author": { "name": "Peter Wone", diff --git a/src/imports.ts b/src/imports.ts index 6bba0b0..c2c5687 100644 --- a/src/imports.ts +++ b/src/imports.ts @@ -2,8 +2,10 @@ import { env } from 'vscode'; const locKey = require("../out/extension.nls.metadata.json").keys; const locVal: any = { "de": require("../out/extension.nls.de.json"), - "en": require("../out/extension.nls.en.json"), - "fr": require("../out/extension.nls.fr.json") + "en": require("../out/extension.nls.en.json"), + "es": require("../out/extension.nls.es.json"), + "fr": require("../out/extension.nls.fr.json"), + "zh": require("../out/extension.nls.zh.json") }; export function localise(key: string): string { @@ -36,7 +38,8 @@ export const filenameByCaption: any = { "Gruvbox": "gruvbox-light", "Idea": "idea", "ISBL": "isbl-editor-light", - "Kimbie": "kimbie.light", + "Kimbie": "kimbie.light", + "Lightfair": "lightfair", "Magula": "magula", "Mono Blue": "mono-blue", "nnfx": "nnfx",