babli
v0.0.13
Published
Use Babli.ai from your commandline. Sync your project with Babli.
Downloads
417
Readme
Babli CLI
Use Babli.ai from your commandline. Sync your project with Babli.
Use
When you have new keys to translate. Add them to one of your translation files. And then
- run
babli login
if you haven't already babli push
- push new keys/translations to Babli.ai- translate them on babli.ai
babli pull
- pull the new translations to your project
Install
npm install -g babli
Use in CI
- set
BABLI_API_KEY
env variable (find it in your project settings) - run
babli pull
to pull translations from babli.ai
Automatic Setup (coming soon)
create new Babli.ai project and connect it to your local project
babli create-project
Manual Setup
- Create a
babli.json
orbabli.yaml
file in the root of your project - Create an empty project in babli.ai and get your projectId
- Add your projectId and pattern to find your translation files
{ "projectId": "<your projectId>", "translationFiles": [{ "pattern": "src/translations/{{lang}}.json" }] }
- Then you can push your keys from your project
babli push