Skip to content

crazyfactory/uptrans

Repository files navigation

uptrans

Build Status GitHub issues codecov devDependencies Status dependencies Status Greenkeeper badge

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.

Terminology

Target repository

Main repository where translations are going to be consumed.

Source repository

Your package repository where you store translations.

Usage

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 repository
    • LANGUAGE_PATH path to translation file on your source repository
    • TARGET_LANGUAGE_PATH path to translation file to be created on target repository
    • PROJECT_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.