Comments (4)
For posterity: It was a bug introduced by a previous release, which was quickly fixed.
Thanks, closing.
from locize-cli.
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.
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.
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
from locize-cli.
Related Issues (20)
- 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
- https-proxy-agent dependency error on fresh install HOT 1
- Download command misses newly added namespaces for tenant projects HOT 3
- 2 high severity vulnerabilities in xlsx HOT 2
- doesn't read variables from .locize? HOT 2
- Sync call fetch fails: ReferenceError: ReadableStream is not defined HOT 3
- Unexpected token '??=' with Node 14 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.