Comments (6)
The sync command is two way. It will always download everything (published) from locize.
And the download command should work too.
Make sure you have published the translations. The cli will only download the published translations.
from locize-cli.
So when I say sync is one way, that's what I mean:
With an empty directory locales
:
locize sync --path locales
I have the locale tree I was expected with all the languages and namespace.
Now, I work on my app, which use the locize backend. It adds keys and value to locize and when I use sync again, it deletes all the work that has been done on locize. I would have expected to retrieve that work.
With download
, it gets one language at the time (if I ain't misunderstanding).
from locize-cli.
With the download command you can download a whole version => locize download --format json --clean true
Just make sure everything is published and skip language and namespace argument on the cli.
If you prefer you can send us an email at [email protected] with the project-id id I will send you a complete cli call example.
from locize-cli.
My bad, the language came from the config file
from locize-cli.
ok.
Should be something like this: locize download --format json --clean true --project-id my-project-id --ver latest --path locales
from locize-cli.
works like a charm now. Thanks for your time
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.