mirror of
https://github.com/samsonjs/media.git
synced 2026-04-11 12:15:47 +00:00
Add language normalization for "arb" (Standard Arabic)
This is an individual language (ISO 639-3) part of the Arabic
macrolanguage ("ar" in ISO 639-1). Add this mapping to our
existing list similar to other individual to macrolanguage
mappings we have already.
Issue: Issue: google/ExoPlayer#10255
PiperOrigin-RevId: 448911950
This commit is contained in:
parent
df1b733d50
commit
daa4c1c0a6
2 changed files with 2 additions and 0 deletions
|
|
@ -2719,6 +2719,7 @@ public final class Util {
|
|||
"ji", "yi",
|
||||
// Individual macrolanguage codes mapped back to full macrolanguage code.
|
||||
// See https://en.wikipedia.org/wiki/ISO_639_macrolanguage
|
||||
"arb", "ar-arb",
|
||||
"in", "ms-ind",
|
||||
"ind", "ms-ind",
|
||||
"nb", "no-nob",
|
||||
|
|
|
|||
|
|
@ -1162,6 +1162,7 @@ public class UtilTest {
|
|||
assertThat(Util.normalizeLanguageCode("ara-ayl")).isEqualTo("ar-ayl");
|
||||
|
||||
// Special case of short codes that are actually part of a macrolanguage.
|
||||
assertThat(Util.normalizeLanguageCode("arb")).isEqualTo("ar-arb");
|
||||
assertThat(Util.normalizeLanguageCode("nb")).isEqualTo("no-nob");
|
||||
assertThat(Util.normalizeLanguageCode("nn")).isEqualTo("no-nno");
|
||||
assertThat(Util.normalizeLanguageCode("nob")).isEqualTo("no-nob");
|
||||
|
|
|
|||
Loading…
Reference in a new issue