Update language list to include missing rtl languages.

This commit is contained in:
Eric Huss 2023-09-02 16:42:14 -07:00
parent 4749f9d97a
commit db877b1c9b
1 changed files with 2 additions and 3 deletions

View File

@ -459,9 +459,8 @@ impl TextDirection {
match code { match code {
// list sourced from here: https://github.com/abarrak/rtl/blob/master/lib/rtl/core.rb#L16 // list sourced from here: https://github.com/abarrak/rtl/blob/master/lib/rtl/core.rb#L16
"ar" | "ara" | "arc" | "ae" | "ave" | "egy" | "he" | "heb" | "nqo" | "pal" | "phn" "ar" | "ara" | "arc" | "ae" | "ave" | "egy" | "he" | "heb" | "nqo" | "pal" | "phn"
| "sam" | "syc" | "syr" | "fa" | "per" | "fas" | "ku" | "kur" | "ur" | "urd" => { | "sam" | "syc" | "syr" | "fa" | "per" | "fas" | "ku" | "kur" | "ur" | "urd"
TextDirection::RightToLeft | "pus" | "ps" | "yi" | "yid" => TextDirection::RightToLeft,
}
_ => TextDirection::LeftToRight, _ => TextDirection::LeftToRight,
} }
} }