Giter VIP home page Giter VIP logo

Comments (6)

adrai avatar adrai commented on June 14, 2024

Probably you are calling the remove command serially?
Try to do something like this:

locize remove --language en namespace key1 &
locize remove --language en namespace key2 &
locize remove --language en namespace key3 &

A single & symbol between commands will let each run independently without relying on the previous command having succeeded.

You can also try to use the locize sync command?

Alternatively, directly use the API: https://docs.locize.com/integration/api#update-remove-translations
set null value for the keys you want to delete.

from locize-cli.

Boscop avatar Boscop commented on June 14, 2024

Right, I was calling them serially. (I tried using & after every of the 652 lines but it froze my computer for minutes and then 367 of those invocations failed with timeout error.)

I was considering sync, but wasn't sure if it fits my use case. But re-reading the doc, it could work.
Just to confirm:
If I pass --reference-language-only false, it won't change the values of any keys in locize, right?
And it won't download any keys that are only in locize, right?
So it will only add keys to locize that were added locally & remove keys from locize that were deleted locally, for all languages, right?

from locize-cli.

adrai avatar adrai commented on June 14, 2024

locize sync will synchronize local(filesystem) and remote(locize), this means it will also download new (published) changes done in locize.
so --reference-language-only false will check not only for changes in your reference language but for changes in all languages

I don't unterstand why you should not want to download changes from remote to local....

As said, if you have a "special" workflow behaviour, use directly the API: https://docs.locize.com/integration/api#update-remove-translations

from locize-cli.

Boscop avatar Boscop commented on June 14, 2024

Ah. So am I understanding it correctly that locize sync --reference-language-only false will not change the values of any key in locize but will set the value of each local key to the value it has in locize?

How does this "all non reference languages will always be just locally replaced by what is published on locize" change with --reference-language-only false?

from locize-cli.

adrai avatar adrai commented on June 14, 2024

I think we're talking past each other...
I suggest you create an empty folder somewhere on your local machine, then run locize sync once, and afterwards try to make some translation changes (locally and/or in locize) and execute locize sync --dry true and locize sync --reference-language-only false --dry true

from locize-cli.

stale avatar stale commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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.