vscode library for supporting i18n
APACHE-2.0 License
vscode library for supporting i18n.
en-US
Make sure your vscode extension has a language file.
package.nls.json
. package.nls.zh-cn.json
. package.nls.zh-tw.json
...
eg.
{
"say.hello": "hello {0}"
}
const { init, localize } = require("vscode-nls-i18n");
function activate(context) {
init(context.extensionPath);
console.log(localize("say.hello", "world")); // hello world
}
Axetroy💻 🔌 ⚠️ 🐛 🎨 |
---|
The License