vscode-nls | npm module to support externalization | Internationalization library

 by   microsoft TypeScript Version: Current License: Non-SPDX

kandi X-RAY | vscode-nls Summary

kandi X-RAY | vscode-nls Summary

vscode-nls is a TypeScript library typically used in Utilities, Internationalization, Visual Studio Code applications. vscode-nls has no bugs, it has no vulnerabilities and it has low support. However vscode-nls has a Non-SPDX License. You can download it from GitHub.

npm module to support externalization and localization of VSCode extensions.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              vscode-nls has a low active ecosystem.
              It has 83 star(s) with 30 fork(s). There are 50 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 9 open issues and 18 have been closed. On average issues are closed in 117 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of vscode-nls is current.

            kandi-Quality Quality

              vscode-nls has 0 bugs and 0 code smells.

            kandi-Security Security

              vscode-nls has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              vscode-nls code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              vscode-nls has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              vscode-nls releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vscode-nls
            Get all kandi verified functions for this library.

            vscode-nls Key Features

            No Key Features are available at this moment for vscode-nls.

            vscode-nls Examples and Code Snippets

            No Code Snippets are available at this moment for vscode-nls.

            Community Discussions

            QUESTION

            Automatically create i18n directory for VSCode extension
            Asked 2019-Oct-08 at 23:58

            I am trying to understand the workflow presented in https://github.com/microsoft/vscode-extension-samples/tree/master/i18n-sample for localizing Visual Studio Code extensions.

            I cannot figure out how the i18n directory gets created to begin with, as well as how the set of string keys in that directory get maintained over time.

            There is one line in the README.md which says "You could have created this folder by hand, or you could have used the vscode-nls-dev tool to extract it."...how would one use vscode-nls-dev tool to extract it?

            What I Understand

            I understand that you can use vscode-nls, and wrap strings like this: localize("some.key", "My String") to pick up the localized version of that string at runtime.

            I am pretty sure I understand that vscode-nls-dev is used at build time to substitute the content of files in the i18n directory into the transpiled JavaScript code, as well as creating files like out/extension.nls.ja.json

            What is missing

            Surely it is not expected that: for every file.ts file in your project you create an i18n/lang/out/file.i18n.json for every lang you support...and then keep the set of keys in that file up to date manually with every string change.

            I am assuming that there is some process which automatically goes "are there any localize("key", "String") calls in file.ts for new keys not yet in file.i18n.json? If so, add those keys with some untranslated values". What is that process?

            ...

            ANSWER

            Answered 2019-Oct-08 at 23:58

            I have figured this out, referencing https://github.com/Microsoft/vscode-extension-samples/issues/74

            This is built to work if you use Transifex for your translator. At the bare minimum you need to use .xlf files as your translation file format.

            I think that this is best illustrated with an example, so lets say you wanted to get the sample project working after you had deleted the i18n folder

            • Step 1: Clone that project, and delete the i18n directory
            • Step 2: Modify the gulp file so that the compile function also generates nls metadata files in the out directory. Something like:

            Source https://stackoverflow.com/questions/58294569

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install vscode-nls

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/microsoft/vscode-nls.git

          • CLI

            gh repo clone microsoft/vscode-nls

          • sshUrl

            git@github.com:microsoft/vscode-nls.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Internationalization Libraries

            formatjs

            by formatjs

            react-i18next

            by i18next

            version

            by sebastianbergmann

            globalize

            by globalizejs

            angular-translate

            by angular-translate

            Try Top Libraries by microsoft

            vscode

            by microsoftTypeScript

            PowerToys

            by microsoftC#

            TypeScript

            by microsoftTypeScript

            terminal

            by microsoftC++

            Web-Dev-For-Beginners

            by microsoftJavaScript