github web-platform-tests/wpt merge_pr_49258

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
9 months ago

[built-in-ai] Expose ai.translator and make AITranslatorFactory work

This CL does two things:
(1) Expose translator to ai
(2) Make AITranslator work correctly (call CreateTranslator from
AITranslatorFactory)
Most of the code is copied from translator.cc and langauge_translator.cc.

Bug: 379643382
Change-Id: If2341b958cd9dcb2641891ff3aabf02e760e4b47
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6023056
Reviewed-by: Fergal Daly fergal@chromium.org
Reviewed-by: Kentaro Hara haraken@chromium.org
Commit-Queue: Yuzu Saijo yuzus@chromium.org
Cr-Commit-Position: refs/heads/main@{#1384790}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.