Skip to content

Commit 05af56b

Browse files
committed
Consistify API names
1 parent 2363b60 commit 05af56b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Explainer for the Web Translation and Language Detection APIs
1+
# Explainer for the Translator and Language Detector APIs
22

33
_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._
44

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

4545
### Translation
4646

47-
Here is the basic usage of the translation API, with no error handling:
47+
Here is the basic usage of the translator API, with no error handling:
4848

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

6363
### Language detection
6464

65-
A similar simplified example of the language detection API:
65+
A similar simplified example of the language detector API:
6666

6767
```js
6868
const detector = await ai.languageDetector.create();

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<pre class='metadata'>
2-
Title: Web Translation API
2+
Title: Translator and Language Detector APIs
33
Shortname: translation
44
Level: None
55
Status: w3c/UD
66
Repository: explainers-by-googlers/translation-api
77
URL: https://explainers-by-googlers.github.io/translation-api
88
Editor: Domenic Denicola, Google https://google.com, [email protected], https://domenic.me/
9-
Abstract: The web translation API gives web pages the ability to translate text between languages, and detect the language of such text.
9+
Abstract: The translator and langauge detector APIs gives web pages the ability to translate text between languages, and detect the language of such text.
1010
Markup Shorthands: markdown yes, css no
1111
Complain About: accidental-2119 yes, missing-example-ids yes
1212
Assume Explicit For: yes

0 commit comments

Comments
 (0)