webauthn icon indicating copy to clipboard operation
webauthn copied to clipboard

authenticatorDisplayName should use a localizable language map

Open timcappalli opened this issue 5 months ago • 5 comments

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

"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"}
}

timcappalli avatar Sep 24 '24 21:09 timcappalli