Coder Social home page Coder Social logo

Comments (4)

dbaeumer avatar dbaeumer commented on May 14, 2024

For extensions there is a vscode-nls-dev package that helps with managing the files. This has support as well to bundle all strings into one file. See https://github.com/microsoft/vscode-nls/blob/main/src/common/common.ts#L8.

The vscode-nls-dev package also generates a single meta data file containing all English strings and their corresponding keys. The file is called nls.metadata.json.

from vscode-nls.

HuihuiWu-Microsoft avatar HuihuiWu-Microsoft commented on May 14, 2024

@dbaeumer Thanks for your response. I think vscode-nls-dev is to transform all files under i18n folder to meta data file under 'out' file. So according to my understanding, the meta data file is only for running the extension after building the extension. But the strings under i18n folder which is like the source to manage is still distributed in different files. For example, when you add a new string in code, you need to add it to i18n folder and when bug exist, you need to find in all these files under the locale folder.

Same to the English strings, the meta data file contains all English strings but it's generated by vscode-nls-dev, the original English word is somehow hardcoded in code instead of referenced from a single file.

from vscode-nls.

dbaeumer avatar dbaeumer commented on May 14, 2024

@HuihuiWu-Microsoft as I said in my previous post you can either have single files or one bundle (https://github.com/microsoft/vscode-nls/blob/main/src/common/common.ts#L8.)

vscode-nls-dev extracts strings from the source and generates English files to be translated. vscode-nls allows to use different languages during runtime.

from vscode-nls.

dbaeumer avatar dbaeumer commented on May 14, 2024

Without the additional information we can't work on this issue. Please ping when the information is available and we will reopen the issue.

Happy Coding

from vscode-nls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.