←back to thread

Web Translator API

(developer.mozilla.org)
97 points kozika | 1 comments | | HN request time: 0.208s | source
Show context
sfmz ◴[] No.44376080[source]
https://developer.chrome.com/docs/ai/translator-api

const translator = await Translator.create({ sourceLanguage: 'en', targetLanguage: 'fr', });

await translator.translate('Where is the next bus stop, please?');

replies(1): >>44378311 #
ks2048 ◴[] No.44378311[source]
So, this is Google Translate built running locally in Chrome? I wonder if it is a small/degraded model or limited languages? Otherwise, how is it not a simple way around the paid Google API?
replies(5): >>44378361 #>>44378552 #>>44379184 #>>44381572 #>>44381935 #
1. akazantsev ◴[] No.44381572[source]
Here is the information on how it works in Chrome. https://developer.chrome.com/docs/ai/translator-api