Skip to content

Commit

Permalink
Merge pull request #54 from xunkong/track-name
Browse files Browse the repository at this point in the history
Change track name to native language
  • Loading branch information
ToaHartor authored Oct 26, 2022
2 parents fdb6442 + e594143 commit 229949a
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions src/FileTypes/MKV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ internal class MKV
{
public static readonly Dictionary<string, (string, string)> SubsLang = new()
{
{"CHS", ("chi", "Chinese (Simplified)")},
{"CHT", ("chi", "Chinese (Traditional)")},
{"DE", ("ger", "German")},
{"CHS", ("chi-CN", "简体中文")},
{"CHT", ("chi-TW", "繁體中文")},
{"DE", ("ger", "Deutsch")},
{"EN", ("eng", "English")},
{"ES", ("spa", "Spanish")},
{"FR", ("fre", "French")},
{"ID", ("ind", "Indonesian")},
{"JP", ("jpn", "Japanese")},
{"KR", ("kor", "Korean")},
{"PT", ("por", "Portuguese")},
{"RU", ("rus", "Russian")},
{"TH", ("tha", "Thai")},
{"VI", ("vie", "Vietnamese")}
{"ES", ("spa", "Español")},
{"FR", ("fre", "Français")},
{"ID", ("ind", "Bahasa Indonesia")},
{"JP", ("jpn", "日本語")},
{"KR", ("kor", "한국어")},
{"PT", ("por", "Português")},
{"RU", ("rus", "Русский")},
{"TH", ("tha", "ภาษาไทย")},
{"VI", ("vie", "Tiếng Việt")}
};

public static readonly (string, string)[] AudioLang =
{
("Chinese", "chi"), // zh
("汉语", "chi"), // zh
("English", "eng"), // en
("Japanese", "jpn"), // ja
("Korean", "kor") // ko
("日本語", "jpn"), // ja
("한국어", "kor") // ko
};
// Or Lang to IETF Lang
public static readonly Dictionary<string, string> IsoToBcp47 = new()
Expand All @@ -41,7 +41,9 @@ public static readonly (string, string)[] AudioLang =
{"rus", "ru"},
{"tha", "th"},
{"vie", "vi"},
{"und", "und"}
{"und", "und"},
{"chi-CN", "zh"},
{"chi-TW", "zh"}
};
}
}

0 comments on commit 229949a

Please # to comment.