Git Product home page Git Product logo

Comments (4)

ViktorHofer avatar ViktorHofer commented on June 17, 2024

XliffTasks isn't publicly shipping. Who would benefit from such a feature? Is it just internal teams?

from arcade.

tmat avatar tmat commented on June 17, 2024

XliffTasks isn't publicly shipping. Who would benefit from such a feature? Is it just internal teams?

Yes, internal teams. Like anything in Arcade?

from arcade.

Cosifne avatar Cosifne commented on June 17, 2024

Trying to investigate the plan here.
The goal here would be, we should be able to localize strings under .vsextension//string-resources.json

It's similar to the VSCode l10n model.
In vscode, it is done in this way.

  1. vscode l10n would generate bundle.l10.json. This is done by scanning the whole extension code. The scanning process is not interesting here.
  2. From bundle.l10.json, it would be converted to xlf file by using the generate-xlf in l10n.
  3. These xlf file could later be translated by the LOC team.
  4. Translated xlf file, can be converted back to json file by using import-xlf .

Note VS code only provide l10n and l10-dev packages function via npm, so developer needs to set up the pipeline themself to work with the LOC side.

So in short, vscode path is x.json -> x.xlf -> Translated by LOC team -> x.xlf (translated) -> x.json

In VS, it seems like we need to support LOC from both the json file and the legacy xlf file.
For each extension, it seems like xliff-tasks should support

  1. Convert the string-resources.json to string-resources.xlf.
  2. Expand string-resources.xlf to all the supported language version.
  3. Convert <lang>/string-resources.xlf back to <lang>/string-resources.json

(I guess there should be only one string-ressources.xlf per extension)
Arcade might add other support to feed the results of Step 2 to LOC side so they can generated the real LOC content. It might not needed in xliff-tasks

I am unfamiliar with arcade repo and xliff-tasks. Is this a good plan? Do I need to get someone's review before start working on this? Tag @tmat and @ViktorHofer

from arcade.

tmat avatar tmat commented on June 17, 2024

@Cosifne Yes, that's how it would work. xliff-tasks already implements everything. It just needs to understand the additional string-resources.json items. Seems like adding it is straightforward. I'll give it a shot since it's blocking me now.

from arcade.

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.