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.
$ git clone THIS_REPO_URL
$ cd left
$ vi .env # specify all the config vars (see below)
$ npm install
$ npm run start
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
- Get
SESSION_TOKEN
from LastPass - Get details for finding
OKTA_ISSUER
,OKTA_CLIENT
&OKTA_SECRET
in LastPass