webauthn
webauthn copied to clipboard
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
"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"}
}