Repository navigation
Commit 16f8bab
Browse files
tomayac
authored
Translator and Language Detector: refine network-related unavailability (
#46852 )
1 parent 85ffac2 commit 16f8bab
4 files changed
Lines changed: 4 additions & 4 deletions
File tree
-
files/en-us/web/api
-
languagedetector
-
availability_static
-
create_static
-
translator
-
availability_static
-
create_static
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
@@ -40,7 +40,7 @@ Possible values include:
|
40 | 40 | - `unavailable`
|
41 | 41 | - : The browser does not support the given configuration. This value is also returned if:
|
42 | 42 | - The Language Detector API is blocked by a {{httpheader('Permissions-Policy/language-detector','language-detector')}} {{httpheader("Permissions-Policy")}}.
|
43 | | - - The current device can't run the API, for example, because of insufficient hardware resources or storage space, or limits on concurrent usage or network conditions.
|
| 43 | + - The current device can't run the API, for example, because of insufficient hardware resources or storage space, or limits on concurrent usage.
|
44 | 44 |
|
45 | 45 | ### Exceptions
|
46 | 46 |
|
|
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
@@ -55,7 +55,7 @@ A {{jsxref("Promise")}} that fulfills with a `LanguageDetector` object instance.
|
55 | 55 | - : Thrown if:
|
56 | 56 | - The language tags specified in `expectedInputLanguages` are invalid, or not supported.
|
57 | 57 | - An AI model to support the specified `expectedInputLanguages` is not available.
|
58 | | - - The current device can't run the API, for example, because of insufficient hardware resources or storage space, or limits on concurrent usage or network conditions.
|
| 58 | + - The current device can't run the API, for example, because of insufficient hardware resources or storage space, or limits on concurrent usage.
|
59 | 59 | - `OperationError` {{domxref("DOMException")}}
|
60 | 60 | - : General-purpose exception thrown if `LanguageDetector` creation failed for any other reason.
|
61 | 61 |
|
|
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
@@ -43,7 +43,7 @@ Possible values include:
|
43 | 43 | - : The browser does not support the given configuration. This value is also returned if:
|
44 | 44 | - The specified `sourceLanguage` and `targetLanguage` are the same.
|
45 | 45 | - The Translator API is blocked by a {{httpheader('Permissions-Policy/translator','translator')}} {{httpheader("Permissions-Policy")}}.
|
46 | | - - The current device can't run the API, for example, because of insufficient hardware resources or storage space, or limits on concurrent usage or network conditions.
|
| 46 | + - The current device can't run the API, for example, because of insufficient hardware resources or storage space, limits on concurrent usage, or a data saver setting on a metered connection.
|
47 | 47 |
|
48 | 48 | ### Exceptions
|
49 | 49 |
|
|
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
@@ -57,7 +57,7 @@ A {{jsxref("Promise")}} that fulfills with a `Translator` object instance.
|
57 | 57 | - : Thrown if:
|
58 | 58 | - The language tags specified in `sourceLanguage` or `targetLanguage` are invalid, or not supported. This is the case if the specified `sourceLanguage` and `targetLanguage` are the same.
|
59 | 59 | - An AI model to support the specified combination of `sourceLanguage` and `targetLanguage` is not available.
|
60 | | - - The current device can't run the API, for example, because of insufficient hardware resources or storage space, or limits on concurrent usage or network conditions.
|
| 60 | + - The current device can't run the API, for example, because of insufficient hardware resources or storage space, limits on concurrent usage, or a data saver setting on a metered connection.
|
61 | 61 | - `OperationError` {{domxref("DOMException")}}
|
62 | 62 | - : General-purpose exception thrown if `Translator` creation failed for any other reason.
|
63 | 63 |
|
|