Skip to content

String metadata and localization for operator labels #837

@xfq

Description

@xfq

https://www.w3.org/TR/webnn/#operator-label

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18n-needs-resolutionIssue the Internationalization Group has raised and looks for a response on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions