[webauthn] authenticatorDisplayName should use a localizable language map (#2151)

timcappalli has just created a new issue for https://github.com/w3c/webauthn:

== authenticatorDisplayName should use a localizable language map ==
Related to #1644

## Proposed Change

authenticatorDisplayName is currently a DOMString and does not support localization, specifically language codes and direction.

Change to a map following the String Meta spec: https://www.w3.org/TR/string-meta/#language-maps

```json
"authenticatorDisplayName": {
    "en":    {"value": "This is English"},
    "en-GB": {"value": "This is UK English", "dir": "ltr"},
    "fr":    {"value": "C'est français", "lang": "fr-CA", "dir": "ltr"},
    "ar":    {"value": "هذه عربية", "dir": "rtl"}
}
```



Please view or discuss this issue at https://github.com/w3c/webauthn/issues/2151 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 24 September 2024 21:39:57 UTC