-
Notifications
You must be signed in to change notification settings - Fork 59
Description
An operator has a label, a string which may be included in diagnostics such as exception messages. When an operator is created its label is initialized in an implementation-defined manner and may include the passed label.
The WebNN specification defines operator labels as developer-provided strings used for diagnostic purposes.
Section 10.8.1 of the Internationalization Best Practices for Spec Developers document recommends that APIs provide language-independent identifiers for errors and, if natural language error message fields are included, these should include language and direction metadata and ideally match the user interface language negotiated for the request.
I'm not sure whether WebNN operator labels constitute natural language strings akin to error messages. If they are natural language, they should include language and direction metadata and consideration for localization to align with i18n best practices. We propose clarifying the nature of operator labels and ensuring compliance with i18n guidelines.