webmaxru avatar

Translator Api

This handles browser Translator API integration for on-device translation in JavaScript or TypeScript web apps. It walks you through capability checks, session lifecycle, model download UX, streaming output, and permissions policy wiring. The procedures are thorough: you get guarded session templates, abort handling, quota measurement, and fallback patterns for unsupported language pairs or blocked contexts. It won't help with cloud translation SDKs or server-side pipelines. If you're adding translation to a frontend and want to use the built-in browser API instead of shipping to a service, this gives you the full integration checklist and keeps you out of the common traps around secure contexts and iframe delegation.

skills.sh installs
151
GitHub stars
31
last updated
Jun 3, 2026

Install

$ npx -y skills add webmaxru/agent-skills --skill translator-api --agent claude-code

Installs into .claude/skills of the current project.

Files

Translator API

Procedures

Step 1: Identify the browser integration surface

  1. Inspect the workspace for browser entry points, text-input flows, localization UI, and any existing AI abstraction layer.
  2. Execute node scripts/find-translator-targets.mjs . to inventory likely frontend files and existing Translator API markers when a Node runtime is available.
  3. If a Node runtime is unavailable, inspect the nearest package.json, HTML entry point, and framework bootstrap files manually to identify the browser app boundary.
  4. If the workspace contains multiple frontend apps, prefer the app that contains the active route, translation UI, or user-requested feature surface.
  5. If the inventory still leaves multiple plausible frontend targets, stop and ask which app should receive the Translator API integration.
  6. If the project is not a browser web app, stop and explain that this skill does not apply.

Sponsors

Details

Repository
github.com/webmaxru/agent-skills
Categories
Backend & APIs, AI & Agent Building
First seen
Jun 3, 2026

More from webmaxru/agent-skills

All 11
1absolutelyskilled avatardatabase-engineeringabsolutelyskilled/absolutelyskilleddatabase engineering147skills.sh installs
2wispbit-ai avatargraphql-expert-best-practiceswispbit-ai/skillsGraphQL performance optimization and best practices for building scalable APIs. This skill should be used when writing, reviewing, or refactoring GraphQL schema144skills.sh installs
3sickn33 avatargemini-api-devsickn33/antigravity-awesome-skillsgemini api dev128skills.sh installs
4agentworkforce avatardebugging-websocket-issuesagentworkforce/relayIf you've ever seen "RSV1 must be clear" or "Invalid frame header" errors and wondered why your WebSocket is receiving HTTP garbage,...0skills.sh installs
5CongDon1207 avatarangular-api-serviceCongDon1207/AGENTS.mdAngular devs know that HTTP services can quickly become a mess of repeated code and inconsistent error handling.0skills.sh installs
6martinholovsky avatarSQLCipher Encrypted Database Expertmartinholovsky/claude-skills-generatorExpert in SQLCipher encrypted database development with focus on encryption key management, key rotation, secure data handling, and cryptographic best practices0skills.sh installs