GithubHelp home page GithubHelp logo

left's Introduction

LeFT

An exploration of recent, impressive, nay amazing, progress in automated translation services.

This dashboard (behind SSO) lets us have a play with the translations on FT content.

Local Build, Run

$ git clone THIS_REPO_URL
$ cd left
$ vi .env                  # specify all the config vars (see below)
$ npm install
$ npm run start

Configure (via the .env file, or environment params)

ALLOWED_USERS=...          # a CSV of those who can see the extra goodies
PUBLIC_TRANSLATORS=...     # a CSV, e.g. deepl
RESTRICTED_TRANSLATORS=... # a CSV, e.g. amz,google
FT_API_KEY=...             # for FT article content
LEXICON_API_KEY=...        # for FT Lexicon content
DEEPL_API_KEY=...          # for Deepl access
GOOGLE_PROJECT_ID=...      # for Google access
GOOGLE_CREDS={"...         # ditto, a JSON-encoded string of the keyfile
AWS_ACCESS_KEY_ID=...      # for AWS access
AWS_REGION=...             # ditto
AWS_SECRET_ACCESS_KEY=...  # ditto
AUDIO_RENDER_URL=...       # for generating the audio version of the translations
AUDIO_RENDER_TOKEN=...     # ditto (lifted from the renderer's settings)
LIMIT_TABLE=...            # table for checking api limits have not been breached
API_CHAR_LIMITS=...        # JSON object with providers (lowerCase) as key and char limits as (Int) values
PORT=...                   # 3010
BASE_URL=...               # http://localhost:3010
OKTA_CLIENT=...            # for OKTA authentication
OKTA_ISSUER=...            # for OKTA authentication
OKTA_SECRET=...            # for OKTA authentication
SESSION_TOKEN=...          # for OKTA authentication

Where to find OKTA .env vars

  • Get SESSION_TOKEN from LastPass
  • Get details for finding OKTA_ISSUER, OKTA_CLIENT & OKTA_SECRET in LastPass

left's People

Contributors

jamiebrown201 avatar railsagainstignorance avatar lily2point0 avatar sqyphen avatar snyk-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.