Skip to content

axetroy/vscode-nls-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-nls-i18n

Node npm version Size

vscode library for supporting i18n.

Feature

  • vscode build-in i18n rules
  • easy to use
  • support arguments
  • fallback to en-US

Usage

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
}

Contributors


Axetroy

💻 🔌 ⚠️ 🐛 🎨

License

The License