Re: [heycam/webidl] No "Localizable" type (#1025)

Given the majority of cases involve a single label, it makes sense to just suggest Editors add `@dir` and `@lang` to their dictionaries. Infrastructure wise, Infra or some other spec could provide the algorithms. For `@lang` at least, we need to decide if we should check if `IsStructurallyValid()` or not validated at all (i.e., what Notification API does). For `@dir`, it could provide presentation guidance. I think Notification spec's Direction section basically gives us what we need:
https://notifications.spec.whatwg.org/#direction

As @domenic pointed out, we are short of API examples where we would need the more complicated `Localizable` structure. Payment Request at one point had a dictionary where something like that would have made sense (a bunch of caller provided error strings that were displayed in a native UI) - but it's no longer in the spec. In other words, it might be ok to wait on `Localizable` until we actually need it. 


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/1025#issuecomment-934037828

Received on Tuesday, 5 October 2021 03:59:35 UTC