Translator API

Translate text and detect languages on-device using Chrome's built-in AI APIs.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/amedina/chrome-extension-chrome-ai-skills-dev-sample --skill translator-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Translator API
Source: https://github.com/amedina/chrome-extension-chrome-ai-skills-dev-sample/tree/main/.claude/skills/translator-api
Command: npx skills add https://github.com/amedina/chrome-extension-chrome-ai-skills-dev-sample --skill translator-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables seamless, on-device translation of text between languages, eliminating the need for external services and ensuring privacy. It also handles the detection of unknown source languages.

Core Features & Use Cases

  • On-Device Translation: Translate text directly within the browser using Chrome's built-in AI models.
  • Language Detection: Automatically identify the source language of text when it's unknown.
  • Streaming Translation: Efficiently translate long texts by processing them in chunks.
  • Use Case: A user visits a foreign language website and needs to understand the content. This Skill can detect the page's language and translate it into the user's preferred language in real-time.

Quick Start

Translate the following text from English to French: "Where is the nearest bus stop?".

Frequently Asked Questions about Translator API

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate text directly in the browser without relying on cloud services?

You can translate text on-device using Chrome's built-in AI APIs, which ensures privacy and offline functionality by processing translations locally without sending data to external cloud services.

How does on-device language detection work for unknown text?

On-device language detection identifies the source language of unknown text by leveraging the Language Detector API as a fallback, automatically recognizing the language before passing it to the translation model.

Can I translate long texts using the Chrome built-in AI API?

Yes, you can translate long texts efficiently by using streaming translation, which processes extensive content in sequential chunks rather than attempting a single large translation request.

Does client-side translation work offline with Chrome AI APIs?

Client-side translation works offline because it uses Chrome's built-in on-device AI models, eliminating the need for external network dependencies or cloud API calls during the translation process.

What is the best way to handle localization for foreign language websites on the client side?

The best way to handle client-side localization is to use on-device AI to detect the page's language and translate it into the user's preferred language in real-time without external service dependencies.

When should I not use on-device translation for my application?

You should avoid on-device translation if your application must support browsers lacking Chrome's built-in AI APIs or if you require cloud-based translation models that support a wider array of languages.