webmaxru avatar

Language Detector Api

This implements browser-native language detection using the experimental Language Detector API in client-side JavaScript or TypeScript apps. You get support checks, availability gating, model download flows, session management, and proper cleanup patterns for the new built-in capability. It covers permissions policy handling, confidence thresholding, and fallback strategies when the API isn't available. Worth noting this is a window-only browser API, so it won't help with server-side detection or cloud translation services. The procedures are thorough on lifecycle management and include specific guidance on iframe delegation and user activation requirements. Good if you're building progressive enhancement into a web app that needs client-side language detection without shipping a third-party model.

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

Install

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

Installs into .claude/skills of the current project.

Files

Language Detector API

Procedures

Step 1: Identify the browser integration surface

  1. Inspect the workspace for browser entry points, UI handlers, text-input flows, and any existing AI abstraction layer.
  2. Execute node scripts/find-language-detector-targets.mjs . to inventory likely frontend files and existing Language Detector 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, component, or user-requested feature surface.
  5. If the inventory still leaves multiple plausible frontend targets, stop and ask which app should receive the Language Detector 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
1webmaxru avatartranslator-apiwebmaxru/agent-skillstranslator api151skills.sh installs
2absolutelyskilled avatardatabase-engineeringabsolutelyskilled/absolutelyskilleddatabase engineering147skills.sh installs
3wispbit-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
4sickn33 avatargemini-api-devsickn33/antigravity-awesome-skillsgemini api dev128skills.sh installs
5agentworkforce 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
6CongDon1207 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