#991754 SpeechSynthesisVoice.lang is incorrect

Package:
firefox
Source:
firefox
Description:
Mozilla Firefox web browser
Submitter:
Juliusz Chroboczek
Date:
2021-07-31 22:33:03 UTC
Severity:
normal
#991754#5
Date:
2021-07-31 22:02:09 UTC
From:
To:
Run the following code:

    voices = window.speechSynthesis.getVoices();
    voices[0].lang;

This returns something like:

    "sk-STEPH3"

which is not a correct language code, and breaks language matching against
e.g. navigator.languages.