Skip to content

Commit

Permalink
Consistify API names
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Oct 10, 2024
1 parent 2363b60 commit 05af56b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Explainer for the Web Translation and Language Detection APIs
# Explainer for the Translator and Language Detector APIs

_This proposal is an early design sketch by the Chrome built-in AI team to describe the problem below and solicit feedback on the proposed solution. It has not been approved to ship in Chrome._

Expand Down Expand Up @@ -44,7 +44,7 @@ See [below](#language-tag-handling) for more on the details of how language tags

### Translation

Here is the basic usage of the translation API, with no error handling:
Here is the basic usage of the translator API, with no error handling:

```js
const translator = await ai.translator.create({
Expand All @@ -62,7 +62,7 @@ Note that the `create()` method call here might cause the download of a translat

### Language detection

A similar simplified example of the language detection API:
A similar simplified example of the language detector API:

```js
const detector = await ai.languageDetector.create();
Expand Down
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<pre class='metadata'>
Title: Web Translation API
Title: Translator and Language Detector APIs
Shortname: translation
Level: None
Status: w3c/UD
Repository: explainers-by-googlers/translation-api
URL: https://explainers-by-googlers.github.io/translation-api
Editor: Domenic Denicola, Google https://google.com, [email protected], https://domenic.me/
Abstract: The web translation API gives web pages the ability to translate text between languages, and detect the language of such text.
Abstract: The translator and langauge detector APIs gives web pages the ability to translate text between languages, and detect the language of such text.
Markup Shorthands: markdown yes, css no
Complain About: accidental-2119 yes, missing-example-ids yes
Assume Explicit For: yes
Expand Down

0 comments on commit 05af56b

Please sign in to comment.