From db877b1c9bdff545b97b94fa244e9f920ecee3e6 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 2 Sep 2023 16:42:14 -0700 Subject: [PATCH] Update language list to include missing rtl languages. --- src/config.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index bcbb28bc..a740475c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -459,9 +459,8 @@ impl TextDirection { match code { // 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" - | "sam" | "syc" | "syr" | "fa" | "per" | "fas" | "ku" | "kur" | "ur" | "urd" => { - TextDirection::RightToLeft - } + | "sam" | "syc" | "syr" | "fa" | "per" | "fas" | "ku" | "kur" | "ur" | "urd" + | "pus" | "ps" | "yi" | "yid" => TextDirection::RightToLeft, _ => TextDirection::LeftToRight, } }