Skip to content

Commit db877b1

Browse files
committed
Update language list to include missing rtl languages.
1 parent 4749f9d commit db877b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/config.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,8 @@ impl TextDirection {
459459
match code {
460460
// list sourced from here: https://github.com/abarrak/rtl/blob/master/lib/rtl/core.rb#L16
461461
"ar" | "ara" | "arc" | "ae" | "ave" | "egy" | "he" | "heb" | "nqo" | "pal" | "phn"
462-
| "sam" | "syc" | "syr" | "fa" | "per" | "fas" | "ku" | "kur" | "ur" | "urd" => {
463-
TextDirection::RightToLeft
464-
}
462+
| "sam" | "syc" | "syr" | "fa" | "per" | "fas" | "ku" | "kur" | "ur" | "urd"
463+
| "pus" | "ps" | "yi" | "yid" => TextDirection::RightToLeft,
465464
_ => TextDirection::LeftToRight,
466465
}
467466
}

0 commit comments

Comments
 (0)