context.detectLanguage
ContextThe language text is in, by the browser's own language identifier, offline: a BCP 47 code such as 'fr' or
'zh-Hant', or '' where it cannot tell. Only the first 4,000 characters are read.
| Signature | context.detectLanguage(text: string): Promise<string> |
|---|---|
| Take it from | const { detectLanguage } = useToolbar(); |
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string |
Return Value
| Type | Promise<string> |
|---|
Availability
| Bundleware | 1.0.1, build 2026.12.02 |
|---|