GithubHelp home page GithubHelp logo

Comments (4)

megaturbo avatar megaturbo commented on August 26, 2024 1

For posterity: It was a bug introduced by a previous release, which was quickly fixed.

Thanks, closing.

from locize-cli.

adrai avatar adrai commented on August 26, 2024

I just tried to reproduce both use cases, but they behave exactly as they should.
Can you please provide more information?
If you add the --dry true argument, you see what the CLI would do without actually doing it.
You can also write us an email to [email protected] with the exact command line arguments you are using etc...

from locize-cli.

megaturbo avatar megaturbo commented on August 26, 2024

Thanks for the very fast answer. I can answer here for now.

I previously set my project id and api key through:

export LOCIZE_PROJECTID=<project_id>export LOCIZE_API_KEY=<api_key>

The command I run is:

yarn dlx locize-cli sync --path public/locales

Dry run example

I remove the about key in my public/locales/en/translation.json file. If I run

> yarn dlx locize-cli sync --path public/locales --dry true

checking remote (locize)...
checking local (<project_dir>/public/locales) only reference language...
calculate diffs...
adding 206 keys in en/translation...
would add key1, key2, key3,... in en/translation...
syncing...
FINISHED

So, now I indeed have 206 keys, and it does not show about in the list of keys to update. However it does not remove it on my web app (without the --dry true)

Should it output something about removal when using --dry true ?

Edit:

Also, the fact it says "adding 206 keys" while they already exist on locize. Does it mean there's something wrong already ? (I setup locize with locize migrate if that helps)

from locize-cli.

adrai avatar adrai commented on August 26, 2024

I assume the version settings in your locize project (I assume 'latest') is not set to auto-publish mode, but to manual publish mode....
If you tell me the project-id (please via email), I can check that.
btw: https://github.com/locize/locize-cli?tab=readme-ov-file#synchronize-locize-with-your-repository-or-any-other-local-directory
image

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.