Skip to content

Add translation adapter interface for self-hosted backends#174

Open
louzt wants to merge 1 commit into
obbyworld:mainfrom
louzt:feat/issue-101-translation-adapter
Open

Add translation adapter interface for self-hosted backends#174
louzt wants to merge 1 commit into
obbyworld:mainfrom
louzt:feat/issue-101-translation-adapter

Conversation

@louzt
Copy link
Copy Markdown

@louzt louzt commented Apr 22, 2026

Summary

This PR introduces a translation adapter boundary plus a LibreTranslate-oriented adapter path.

It is intentionally separate from the browser-native PR so the self-hosted / backend-driven path can be evaluated independently from the local Translator API experiment.

What this does

  • introduces a swappable translation adapter interface
  • adds an initial self-hosted backend-oriented translation path
  • keeps the translation backend behind an adapter seam instead of coupling the client to one concrete service shape

What this does not do

How this relates to the other open translation work

The intent is to keep these reviewable independently:

Deployment follow-up

For maintainers who want an operational next-step note for a self-hosted deployment, I wrote a separate follow-up here:

That note is intentionally about deployment and reverse-proxy/service layout. It should be read as follow-up guidance for the self-hosted path, not as proof that this PR already provides an IRC-side network translation layer.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 22, 2026

Warning

Rate limit exceeded

@louzt has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 56 minutes and 51 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 56 minutes and 51 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1052fd35-1cc9-4fb2-ab86-78123f76aa68

📥 Commits

Reviewing files that changed from the base of the PR and between e731866 and 4b14222.

📒 Files selected for processing (3)
  • src/lib/translation/adapters.ts
  • src/lib/translation/index.ts
  • tests/lib/libreTranslateAdapter.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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