-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Various locations in the readme, including:
https://github.com/WICG/translation-api/blob/main/README.md#for-a-known-source-language
We do not intend to force every browser to ship language packs for every language combination, or even to support translation at all. It would be conforming to implement this API by always returning "no" from canTranslate(),
The value for canTranslate()
uses English keywords or phrases and some of these ("readily" and "afterDownload") are somewhat idiomatic. The justification for not making this method return boolean type values true
and false
is that there is a third value afterDownload
and that using the boolean keywords would be inconsistent with JS practice (for a variety of reasons).
I would still probably prefer something more like true
/false
/download
or perhaps yes
/no
/downloadRequired
. The values yes
and no
might be consistent with values for the not-exactly-related attribute translate
in ITS.