Giter VIP home page Giter VIP logo

Comments (6)

adrai avatar adrai commented on June 15, 2024

The sync command is two way. It will always download everything (published) from locize.
And the download command should work too.
Make sure you have published the translations. The cli will only download the published translations.

from locize-cli.

rfussien avatar rfussien commented on June 15, 2024

So when I say sync is one way, that's what I mean:

With an empty directory locales:

locize sync --path locales

I have the locale tree I was expected with all the languages and namespace.
Now, I work on my app, which use the locize backend. It adds keys and value to locize and when I use sync again, it deletes all the work that has been done on locize. I would have expected to retrieve that work.

With download, it gets one language at the time (if I ain't misunderstanding).

from locize-cli.

adrai avatar adrai commented on June 15, 2024

With the download command you can download a whole version => locize download --format json --clean true
Just make sure everything is published and skip language and namespace argument on the cli.
If you prefer you can send us an email at [email protected] with the project-id id I will send you a complete cli call example.

from locize-cli.

rfussien avatar rfussien commented on June 15, 2024

My bad, the language came from the config file

from locize-cli.

adrai avatar adrai commented on June 15, 2024

ok.
Should be something like this: locize download --format json --clean true --project-id my-project-id --ver latest --path locales

from locize-cli.

rfussien avatar rfussien commented on June 15, 2024

works like a charm now. Thanks for your time

from locize-cli.

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.