Re: [w3ctag/design-reviews] Web Translation API (Issue #948)

> So I think what you're suggesting ends up converting the API from something like
>
> const capabilities = await ai.translator.capabilities();
> const translator = await ai.translator.create();
>
> to something like
>
> const capabilities = await AITranslatorCapabilities.get();
> const translator = await AITranslator.create();

Capabilities could simply be a static method on the translator, no?

`const capabilities = await Translator.capabilities();`

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/948#issuecomment-2257410401
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/948/2257410401@github.com>

Received on Tuesday, 30 July 2024 04:00:32 UTC