Skip to content

feat: lionbridge connector support - #2

Open
markdaugherty wants to merge 2 commits into
da-sites:mainfrom
markdaugherty:lionbridge-connector-support
Open

feat: lionbridge connector support#2
markdaugherty wants to merge 2 commits into
da-sites:mainfrom
markdaugherty:lionbridge-connector-support

Conversation

@markdaugherty

@markdaugherty markdaugherty commented Aug 10, 2026

Copy link
Copy Markdown

Summary

Picking up work on this connector from @ravuthu.

  • Generalizes the trados-only login branch in src/routes/ints.js into a TOKEN_FETCHERS map keyed by service name.
  • Adds fetchLionbridgeToken (OAuth2 client_credentials grant) so the Lionbridge connector in adobe/da-nx#656 can authenticate.

Test plan

  • npx eslint src/routes/ints.js passes (verified locally)
  • Confirmed Lionbridge login flow against a real Lionbridge staging client id+secret, both as a standalone script and via wrangler dev
  • Confirmed the full flow end-to-end through the real DA UI (da.live/apps/loc, using ?da-etc=local to point at this route running locally): create job → upload → submit → status → download/save, all against real Lionbridge staging APIs

Test site

Set up a dedicated site for this verification: scdemos/lionbridge-demo

  • GitHub repo: scdemos/lionbridge-demo (aem-boilerplate, AEM Code Sync installed)
  • DA content: .da/translate.json (service config: name, source language, French target, apiEndpoint/providerId for Lionbridge) + .da/translate-keys.json (client credentials, referenced via translation.service.key.path — the exact split this route's fetchEnvCreds expects)
  • One published test page (test-page.html) translated end-to-end via the real Translate app UI; translated copy landed at /fr/test-page.html as expected
  • Used Lionbridge's CopyBack provider (vs. Freeway) for fast, deterministic completion during testing

Generalizes the trados-only login branch into a TOKEN_FETCHERS map keyed
by service name, and adds fetchLionbridgeToken (OAuth2 client_credentials
grant) so the da-nx Lionbridge connector can authenticate.

Ports the change from da-sites#1 (ravuthu) onto a fork PR since we
only have read access to da-sites/da-etc.
@markdaugherty
markdaugherty marked this pull request as draft August 10, 2026 20:50
Adds JSDoc for fetchLionbridgeToken and fetchEnvCreds, and adds the
project README (endpoints, architecture, dev/deploy/config notes),
updated to mention the lionbridge login route alongside trados.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant