Comments (6)
The save-missing command, as the name implies, only saves the missing keys.
It is using the https://docs.locize.com/integration/api#missing-translations endpoint so this will not be able to update an existing key.
If you need to update existing keys, why not using the sync command?
from locize-cli.
Thanks for the response. The reason we were avoiding using the sync is because it was overwriting translations. What we ended up doing is downloading the existing translations from Locize first and merging any news keys and values in before uploading again.
One thing we're unclear about is the --update-values
argument for the sync
command. In the docs it says
if you change the values of existing keys in the reference language, it will not change them in locize (to change the existing values you have to change it directly in locize or use the --update-values true argument)
however we noticed values still get updated on Locize without the argument set to true. Can you clarify how this argument behaves?
from locize-cli.
I suspect something strange in your directory structure combined with the sync arguments...
Can you try in a clean directory first?
and when you update the values use the —dry true option to see how it would change.
from locize-cli.
What we found is that if the value for a key is an empty string on Locize the sync
command will update the value regardless of the --update-values
argument. Only when there is a non empty value will the --update-values
have any effect, is that accurate?
from locize-cli.
is this setting enabled? #41 (comment)
from locize-cli.
Enabling that setting worked, thank you.
I didn't see that setting mentioned in the README, it may be helpful to add a note about it for others.
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.