W3C home > Mailing lists > Public > public-device-apis-log@w3.org > February 2023

Re: [compute-pressure] Internationalization Checklist (#184)

From: Addison Phillips via GitHub <sysbot+gh@w3.org>
Date: Tue, 07 Feb 2023 16:25:28 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-1421055463-1675787126-sysbot+gh@w3.org>
> The API specification contains two enums whose values are English strings:

Enum values should not be considered "natural language strings". Yes, they generally use English language words as identifiers, but they are not intended for end-users to view nor are they free-form text values. Developers are expected to read the definition backing the keywords in enumerated values (the description of which can be localized). In fact, it is a best practice to define values in a locale-neutral way and wrap that with display strings (exactly as you go on to suggest).

GitHub Notification of comment by aphillips
Please view or discuss this issue at https://github.com/w3c/compute-pressure/issues/184#issuecomment-1421055463 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 7 February 2023 16:25:29 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 7 February 2023 16:25:30 UTC