This CLI tool helps to manage translations on individual packages, and automatically creates PR to target repository on any new releases on travis.
Any time there's a new release in any package, simply run this CLI, it should automatically create a new PR to target repository with your translations.
Main repository where translations are going to be consumed.
Your package repository where you store translations.
Initially you should:
- Add translations on your project.
- setup travis
- set the following environment variables in your source repository:
GH_TOKEN
token which has access to your target repositoryLANGUAGE_PATH
path to translation file on your source repositoryTARGET_LANGUAGE_PATH
path to translation file to be created on target repositoryPROJECT_NAME
best to use name of your package without special characters. This is used name of branch created in target repository
- on
after_success
, simply run this cli
If everything goes well, a new PR should be created in target repository. If not, file an issue.