Skip to content

CLI tool for synchronization with localise.biz (Loco).

License

Notifications You must be signed in to change notification settings

marten-cz/loco-cli

Repository files navigation

Localise.biz CLI

PyPI version PyPI downloads Build Analytics

Run the cli command

docker run --rm -ti -v $(pwd):/app loco-cli pull

Install from source and develop new features

Requirements

This package need python to be installed. We support Python2 and Python3 as well.

Install

To instal you can use the repository or install the package from PyPI.

pip install loco-cli

To use the cli command, just type loco-cli. You need to have the python path in your PATH environment variable. When you use the command for first time, you will need to create configuration file. Just run loco-cli -p <project name> config. You can specify the path to config file with -c <path>.

You will have to setup push and pull config section as you need. See https://localise.biz/api#!/import/import for supported variables.

Then add path to synchronized files as you need.

After that you can call localise.py pull and localise.py push.

Notes

Merging can be done with msgfmt command line tool.