diff options
| author | Naim A <227396+naim94a@users.noreply.github.com> | 2023-05-19 17:49:16 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-19 16:49:16 +0200 |
| commit | d61a839188f6ba22bd2ed1acdedd561c95547ed6 (patch) | |
| tree | 90da1952914794b914e1c208a03103e2dff32b62 /library | |
| parent | 74b818fe40cb9efeb7af09133f74360bf835c105 (diff) | |
resolve #510: reverse quote direction in RTL languages (#1183)
Diffstat (limited to 'library')
| -rw-r--r-- | library/src/text/quotes.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/src/text/quotes.rs b/library/src/text/quotes.rs index 25d9cf88..d0798064 100644 --- a/library/src/text/quotes.rs +++ b/library/src/text/quotes.rs @@ -147,6 +147,7 @@ impl<'s> Quotes<'s> { "es" if matches!(region, Some("ES") | None) => ("“", "”", "«", "»"), "hu" | "pl" | "ro" => ("’", "’", "„", "”"), "ru" | "no" | "nb" | "nn" | "ua" => ("’", "’", "«", "»"), + _ if lang.dir() == Dir::RTL => ("’", "‘", "”", "“"), _ => return Self::default(), }; |
