@cloudflare/memsource-cli
v3.5.76
Published
> This is a tool for communicating with the `memsource` api to push and pull translation files.
Downloads
5,979
Maintainers
Keywords
Readme
memsource-cli
This is a tool for communicating with the
memsourceapi to push and pull translation files.
Upload
To upload files use:
$ memsource up -cThis command will combine all files matching @cloudflare/intl-translations/src/locale/en-US/*.json into @cloudflare/intl-translations/src/locale/en-US-combined/combined.json and upload it to the project specified in the closest memsource.config.js files, as new jobs.
Example combined.json:
{
"access.json": {"hello":"world"},
"workers.json": {"hello":"back"}
}Download
To download files use:
$ memsource downThis command will downalod and split the combined.json file into it's corresponding file chunks from jobs matching from the project specified in the closest memsource.config.js file. The split files will be put into @cloudflare/intl-translations/src/locale/${target-lang}/. Only files that are Accepted, Completed or Delivered are downloaded.
Installation
$ npm install @cloudflare/memsource-cli