Show HN: I Built a Polyfill for the Browser's New Language Detection API
Category: library
Tags: polyfill, language-detection, webassembly, typescript, web-api
Score: 6.8/10 (Innovation: 6, Technical: 7, Documentation: 7, Utility: 7)
A polyfill for the browser's experimental LanguageDetector Web API, enabling consistent language detection across all major browsers using Google's CLD3 neural network model via WebAssembly. It is interesting because it fills a compatibility gap for a modern browser API with on-device, privacy-preserving processing and a well-designed drop-in interface.
Target audience: frontend devs, web developers
Repository: https://unforbiddenyet.substack.com/p/i-built-a-polyfill-for-the-browsers · TypeScript · MIT · 6 stars
View on Hacker News