0.0.16 • Published 10 months ago
babli v0.0.16
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 loginif 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 babliUse in CI
- set
BABLI_API_KEYenv variable (find it in your project settings) - run
babli pullto pull translations from babli.ai
Automatic Setup (coming soon)
create new Babli.ai project and connect it to your local project
babli create-projectManual Setup
- Create a
babli.jsonorbabli.yamlfile 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