Comments (6)
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.
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.
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.
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.
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.
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)
- build cli for alpine HOT 7
- Sync returns a different result for "auto-publish" mode and without it HOT 8
- Locize cli doesn't read `.env` file HOT 2
- Locize sync alters my `.json` files HOT 2
- Ambiguous --compare-modification-time flag behavior HOT 7
- version contains strange undeletable namespaces HOT 1
- Mapping between CLI params and config options HOT 1
- Locize sync results in FetchError HOT 5
- TypeError: Cannot read properties of null (reading 'value') HOT 1
- install.ps1 automatic figuring out of download url version has broken HOT 2
- bug(install): binary install not working HOT 15
- Not downloading all translations HOT 2
- The sync command crashes with Error: Callback was already called HOT 1
- The download command fails with an error when using the android format HOT 4
- vulnerabilities on npm install HOT 2
- `locize format` removes comments from `fluent files` HOT 1
- Fluent's `Message References` is not being saved in Locize. HOT 1
- High severity vulnerabilities on npm install HOT 1
- Locize-cli timeouts on sync HOT 4
- Support overwriting HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from locize-cli.