w3c / vibration

Vibration API
https://w3c.github.io/vibration/
Other
12 stars 11 forks source link

Internationalization Checklist #38

Open anssiko opened 3 months ago

anssiko commented 3 months ago

Internationalization Checklist

The Short i18n review checklist document is structured into the following sections. Considerations deemed not applicable are marked as "N/A", and those considered relevant are expanded further.

N/A

This API allows explicit user mediation through a native UI, but does not specify or control any natural language text associated with such a UI. That is an implementation detail.

Specifically, the API design allows a conformant implementation to show a UI to ask the user for permission to choose to allow or deny vibration on first invocation on a per-origin basis. Implementers who choose to use such a UI are expected to localize any strings and consider base direction to ensure proper presentation.

(The recommended mechanism is to use user activation gating instead. That means the user must interact with the site, with both first and third-party contexts considered separately, to allow a site to vibrate. Sticky activation requires an explicit click, tap, or press of a key. Specifically, scrolling past an iframe does not count as a user activation.)

The API uses milliseconds as a unit of time to express the length of vibration pattern entries.

himorin commented 3 months ago

+1 to go, also for 1st point, since everything are performed behind platform (or mobile browser) but not through via this API, I suppose we could set as N/A with something like, this API allows explicit user mediation through a native UI to user per implementation decision, since we don't control anything about UI behavior behind API interface.

anssiko commented 3 months ago

Thank you @himorin for your review and suggestions. I adjusted the first point to "N/A" and attempted to expand the elaborate response based on your suggestion.