Follow-up to #10198: PR #10256 exposed per-stream audioLanguage/videoLanguage on tracks, but the UI and preference APIs still treated video tracks as distinguishable by role alone. Manifests carrying multiple sign-language video tracks under the same 'sign' role (e.g. American vs. Dutch Sign Language) could not be told apart or selected individually. Add language to `shaka.extern.VideoPreference` and filter by it in `PreferenceBasedCriteria.applyVideoPreferences_`. Fix selectVideoTrack's matching filter, which compared every video attribute except language. Update `ResolutionSelection` to filter/dedupe by video language instead of collapsing same-resolution tracks in different languages, and VideoTypeSelection to group by (role, language) instead of role alone, showing the language only when it's needed to disambiguate and omitting a now-redundant role prefix when every option shares one. Resolve deprecated 'sgn-XX' BCP-47 tags (not valid ISO 639-3 codes) to their RFC 5645 replacement, and add a small name table for the sign-language codes that neither mozilla.LanguageMapping nor Intl.DisplayNames reliably names.
language-mapping-list
List of all the known languages in their English and Native name with locales.
There are over 200 languages available in the list.
$ npm install langmap
Usage:
var langmap = require("langmap");
"Native" => English (US)
var native = langmap["en-US"]["nativeName"];
"Native" => ภาษาไทย
var native = langmap["th"]["nativeName"];
"English" => Thai
var native = langmap["th"]["englishName"];