No description
  • TypeScript 84.4%
  • Svelte 10.7%
  • CSS 3.3%
  • PowerShell 0.8%
  • JavaScript 0.4%
  • Other 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-18 08:49:46 +09:00
.codex/skills Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
changelog Prepare Translmate 0.1.1 for public Firefox distribution 2026-11-18 08:25:55 +09:00
docs Describe agentic translation and prepare the AMO listing icon 2026-11-18 08:49:46 +09:00
public Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
scripts Prepare Translmate 0.1.1 for public Firefox distribution 2026-11-18 08:25:55 +09:00
src Prepare Translmate 0.1.1 for public Firefox distribution 2026-11-18 08:25:55 +09:00
.editorconfig Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
.gitattributes Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
.gitignore Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
.oxlintrc.json Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
.prettierignore Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
.prettierrc.json Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
AGENTS.md Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
build_for_local_use.sh Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
changelog.md Prepare Translmate 0.1.1 for public Firefox distribution 2026-11-18 08:25:55 +09:00
LICENSE-APACHE Prepare Translmate 0.1.1 for public Firefox distribution 2026-11-18 08:25:55 +09:00
LICENSE-MIT Prepare Translmate 0.1.1 for public Firefox distribution 2026-11-18 08:25:55 +09:00
package.json Prepare Translmate 0.1.1 for public Firefox distribution 2026-11-18 08:25:55 +09:00
pnpm-lock.yaml Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
README.md Prepare Translmate 0.1.1 for public Firefox distribution 2026-11-18 08:25:55 +09:00
test.html Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
tsconfig.json Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
vitest.config.ts Release Translmate 0.1.0 2026-11-18 08:06:10 +09:00
wxt.config.ts Prepare Translmate 0.1.1 for public Firefox distribution 2026-11-18 08:25:55 +09:00

Translmate

Translmate translates the page you are reading in Firefox with a language model you choose. It replaces text in place, preserving links and emphasis. You can switch back to the original while translation continues.

Set up your first translation

  1. Open Translmate from the Firefox toolbar, then open Settings using the gear button.
  2. Under Providers, choose Add provider. Use Custom for your own endpoint or select a preset. Enter a name, the API base URL, and a key if the service requires one. The base URL should stop before /models, /responses, or /chat/completions.
  3. Select Responses for a server that implements the Responses API. Chat Completions is available for compatible servers that use that protocol. The translation model must support tool calls.
  4. Save the provider. Under Models, fetch its models and choose the default model.
  5. Open a page and start translation from the toolbar popup. The initial target language follows Firefox’s language preference. Change it in Settings → Translation, or use the popup’s quick override.

A fresh installation has an empty provider list. Connections begin when you fetch models or request translation. Previously saved providers retain their protocol and model selection.

Use HTTPS for a hosted provider. For a model on your own network, enter its HTTP base URL using its IP address or host name. HTTP carries the page text and any provider credentials in cleartext. Enter the endpoint's final URL because provider requests do not follow redirects.

Reading a page

The default Translate as I read mode prioritizes text around the viewport. For a long article you want ready in advance, select Translate the entire page in advance under Translation. This queues content already loaded on the page. If a page has no recognizable main article, Translmate can ask the selected model to choose among short excerpts.

Show original restores the source text. Show translation brings back cached translations. Moving to another document in the same tab ends the previous translation session.

The configured endpoint receives the page title, URL, text and translation context. At 80% of the configured context budget, Translmate can ask the same model to summarize older turns. Firefox stores provider credentials locally. Privacy and data handling

Build and run

Use Node.js 24.14 or later in the 24.x line and pnpm 10.28.1. From a checkout, run the following commands to install locked dependencies and launch a development Firefox profile.

pnpm install --frozen-lockfile
pnpm dev:firefox

Run pnpm check for lint, formatting, type checks and the offline behavior tests. The optional live translation test uses TRANSLMATE_LIVE_LLM=1, TRANSLMATE_LIVE_BASE_URL and TRANSLMATE_LIVE_MODEL. Set TRANSLMATE_LIVE_API_KEY when required by the endpoint. Select the legacy transport with TRANSLMATE_LIVE_PROTOCOL=chat-completions.

Reproduce the Firefox package

From a checkout or the extracted reviewer source ZIP, run the following commands. The build requires no provider credentials.

pnpm install --frozen-lockfile
pnpm zip:firefox

WXT writes .output/translmate-<version>-firefox.zip and .output/translmate-<version>-sources.zip. To compare builds, compare the files inside the extension ZIP. ZIP timestamps can differ. The test suite lives in the Git checkout. AMO reviewer notes

Change history · Decisions · Architecture

Report issues on GitHub. Translmate is available under either the MIT License or the Apache License 2.0, at your option. Third-party components retain their own licenses.