GithubHelp home page GithubHelp logo

Comments (6)

adrai avatar adrai commented on May 28, 2024

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.

michael-mao avatar michael-mao commented on May 28, 2024

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.

adrai avatar adrai commented on May 28, 2024

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.

michael-mao avatar michael-mao commented on May 28, 2024

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.

adrai avatar adrai commented on May 28, 2024

is this setting enabled? #41 (comment)

from locize-cli.

michael-mao avatar michael-mao commented on May 28, 2024

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)

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.