Re: [heycam/webidl] Exceptions not localizable (#1024)

@annevk wrote:
> And leave localization to the developer console messages (which could be different and sometimes better, depending).

I think this gets to the core of the problem and perhaps we should move to standardize `.message` in future specs. At the same time, complementing this with console-only localization. 

Imagine:

```JS
try {
   navigator.thingThatThrows();
} catch (err) {
   // Private message in my native language that JS can't access
   // and only shows up in the browser console.
   console.localized(err);  
}
``` 

That would be very nice. 


-- 
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/1024#issuecomment-925540899

Received on Thursday, 23 September 2021 06:37:13 UTC