diff --git a/YoutubeExplode.Converter/Utils/Extensions/LanguageExtensions.cs b/YoutubeExplode.Converter/Utils/Extensions/LanguageExtensions.cs index 36aa4489..2fda32b3 100644 --- a/YoutubeExplode.Converter/Utils/Extensions/LanguageExtensions.cs +++ b/YoutubeExplode.Converter/Utils/Extensions/LanguageExtensions.cs @@ -33,7 +33,7 @@ public static string GetThreeLetterCode(this Language language) => "bi" => "bis", "bm" => "bam", "bn" => "ben", - "bo" => "tib", + "bo" => "bod", "br" => "bre", "bs" => "bos", "ca" => "cat", @@ -44,24 +44,24 @@ public static string GetThreeLetterCode(this Language language) => "cs" => "cze", "cu" => "chu", "cv" => "chv", - "cy" => "wel", + "cy" => "cym", "da" => "dan", - "de" => "ger", + "de" => "deu", "dv" => "div", "dz" => "dzo", "ee" => "ewe", - "el" => "gre", + "el" => "ell", "en" => "eng", "eo" => "epo", "es" => "spa", "et" => "est", - "eu" => "baq", - "fa" => "per", + "eu" => "eus", + "fa" => "fas", "ff" => "ful", "fi" => "fin", "fj" => "fij", "fo" => "fao", - "fr" => "fre", + "fr" => "fra", "fy" => "fry", "ga" => "gle", "gd" => "gla", @@ -76,7 +76,7 @@ public static string GetThreeLetterCode(this Language language) => "hr" => "hrv", "ht" => "hat", "hu" => "hun", - "hy" => "arm", + "hy" => "hye", "hz" => "her", "ia" => "ina", "id" => "ind", @@ -84,13 +84,17 @@ public static string GetThreeLetterCode(this Language language) => "ig" => "ibo", "ii" => "iii", "ik" => "ipk", + "in" => "ind", "io" => "ido", - "is" => "ice", + "is" => "isl", "it" => "ita", "iu" => "iku", + "iw" => "heb", "ja" => "jpn", + "ji" => "yid", "jv" => "jav", - "ka" => "geo", + "jw" => "jav", + "ka" => "kat", "kg" => "kon", "ki" => "kik", "kj" => "kua", @@ -116,20 +120,21 @@ public static string GetThreeLetterCode(this Language language) => "lv" => "lav", "mg" => "mlg", "mh" => "mah", - "mi" => "mao", - "mk" => "mac", + "mi" => "mri", + "mk" => "mkd", "ml" => "mal", "mn" => "mon", + "mo" => "ron", "mr" => "mar", - "ms" => "may", + "ms" => "msa", "mt" => "mlt", - "my" => "bur", + "my" => "mya", "na" => "nau", "nb" => "nob", "nd" => "nde", "ne" => "nep", "ng" => "ndo", - "nl" => "dut", + "nl" => "nld", "nn" => "nno", "no" => "nor", "nr" => "nbl", @@ -148,7 +153,7 @@ public static string GetThreeLetterCode(this Language language) => "qu" => "que", "rm" => "roh", "rn" => "run", - "ro" => "rum", + "ro" => "ron", "ru" => "rus", "rw" => "kin", "sa" => "san", @@ -156,13 +161,14 @@ public static string GetThreeLetterCode(this Language language) => "sd" => "snd", "se" => "sme", "sg" => "sag", + "sh" => "hbs", "si" => "sin", "sk" => "slo", "sl" => "slv", "sm" => "smo", "sn" => "sna", "so" => "som", - "sq" => "alb", + "sq" => "sqi", "sr" => "srp", "ss" => "ssw", "st" => "sot", @@ -196,7 +202,7 @@ public static string GetThreeLetterCode(this Language language) => "yi" => "yid", "yo" => "yor", "za" => "zha", - "zh" => "chi", + "zh" => "zho", "zu" => "zul", var code => throw new InvalidOperationException($"Unrecognized language code '{code}'.") };