translectra

Open-source Translation Management System.

This application has now been renamed LocalizeIt. Please check https://localizeit.org for more info.
Last updated 2 years ago by ivangabriele .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install translectra 
SYNC missed versions from official npm registry.

Translectra

Open-source Translation Management System in NodeJS.

The MIT License Travis David David

NSP Status

Introduction

This TMS is highly inspired by Attlassian Translations which is unfortunately not open-sourced. We all know how translations management can be laborious and we tried to create a tool that can fit multiple kind of projects: software development, documentation, marketing, etc.

We have started implementing a full versionning system (for both translation keys and projects).

Features

  • Ready to deploy: can be automatically integrated with a CI host (Heroku, AWS, Azure, etc)
  • Cross-projects translation keys
  • Multiple submissions management for each key (per language)
  • Voting and approval system for submitted translations
  • Keys versionning
  • Markdown support

Roadmap

  • Projects versionning (in progress)
  • Default language setting
  • XLIFF and Gettext PO exports
  • JSON, XLIFF and Gettext PO imports
  • Comment translation submissions
  • Edit translation submissions
  • Remove translation submissions
  • User dashboard

Demo

We are using this tool to handle all our translations: https://translations.electraproject.org. You won't be able to see the administrators and managers part but it will give you a good idea of how it works.

Deploy

Translectra is quite easy to deploy and just require environment variables and a Google developer account to be set in order to work There is no need to touch the code at all if you use modern CI environments like Heroku.

Setup Google signup/login

Since Translectra is dedicated to crowdsourced translations, we found that the most universal and easiest way to manage the authentication process was only support the signup/login via Google accounts, at least for the current major version.

You thus need to setup a Google Developer account if you don't already have one.

Once it's done, you'll need to setup your credentials, with https://www.example.com/auth/callback as authorized redirect URIs. You can add https://localhost/auth/callback if you want to run it locally.

You will also need to enable the Google+ API.

Mandatory environment variables

  • GOOGLE_API_KEY: your Google API credentials client_id.
  • GOOGLE_API_SECRET: your Google API credentials client_secret.
  • MONGODB_URL: your full MongoDB url.
  • SESSION_SECRET: a randomly generated, long and complex passphrase.
  • WEBSITE_NAME: your translation website name.
  • WEBSITE_URL: your translation website url (without slash at the end).

Heroku

  1. Create your heroku app in the dashboard or via the Heroku Toolbelt.
  2. Add a MongoDB add-on, mLab MongoDB for example.
  3. Set up the mandatory environment variables in your app settings.
  4. Clone the project locally:
    git clone https://github.com/Electra-project/translectra.git
  5. Enter the directory:
    cd translectra
  6. Link your Heroku app:
    heroku git:remote -a translectra (Replace "translectra" by the name of your Heroku app)
  7. Push the project to Heroku:
    git push heroku master

That's it ! It should automatically build and deploy now ;)

Contribute

Getting Started

git clone https://github.com/Electra-project/translectra.git
cd translectra
npm i

Start developing

Once you're all set up, you can start coding:

npm run start:dev

will automatically start a "live" watch compiling the backend & frontend JS code (in build folder) on file changes.

Current Tags

  • 0.3.0                                ...           latest (2 years ago)

5 Versions

  • 0.3.0 [deprecated]           ...           2 years ago
  • 0.2.1 [deprecated]           ...           2 years ago
  • 0.2.0 [deprecated]           ...           2 years ago
  • 0.1.0 [deprecated]           ...           2 years ago
  • 0.0.0 [deprecated]           ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 10
Dependencies (40)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |