Nanobots Protecting Microbots

    vscode-nls-i18n
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.4 • Public • Published

    vscode-nls-i18n

    Node npm version Size

    vscode library for supporting i18n.

    Feature

    • [x] vscode build-in i18n rules
    • [x] easy to use
    • [x] support arguments
    • [x] 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

    Keywords

    none

    Install

    npm i vscode-nls-i18n

    DownloadsWeekly Downloads

    55

    Version

    0.2.4

    License

    Apache 2.0

    Unpacked Size

    20.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • axetroy