Add support for Croatian quotes (#5539)

This commit is contained in:
Borna Punda 2024-12-08 17:29:24 +01:00 committed by GitHub
parent a1a5215234
commit fbcd624eeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -211,7 +211,7 @@ impl<'s> SmartQuotes<'s> {
/// Swiss / Liechtensteinian German, Estonian, Icelandic, Italian, Latin, /// Swiss / Liechtensteinian German, Estonian, Icelandic, Italian, Latin,
/// Lithuanian, Latvian, Slovak, Slovenian, Spanish, Bosnian, Finnish, /// Lithuanian, Latvian, Slovak, Slovenian, Spanish, Bosnian, Finnish,
/// Swedish, French, Swiss French, Hungarian, Polish, Romanian, Japanese, /// Swedish, French, Swiss French, Hungarian, Polish, Romanian, Japanese,
/// Traditional Chinese, Russian, Norwegian, and Hebrew. /// Traditional Chinese, Russian, Norwegian, Hebrew and Croatian.
/// ///
/// For unknown languages, the English quotes are used as fallback. /// For unknown languages, the English quotes are used as fallback.
pub fn get( pub fn get(
@ -250,6 +250,7 @@ impl<'s> SmartQuotes<'s> {
"ru" | "no" | "nb" | "nn" | "uk" => ("", "", "«", "»"), "ru" | "no" | "nb" | "nn" | "uk" => ("", "", "«", "»"),
"el" => ("", "", "«", "»"), "el" => ("", "", "«", "»"),
"he" => ("", "", "", ""), "he" => ("", "", "", ""),
"hr" => ("", "", "", ""),
_ if lang.dir() == Dir::RTL => ("", "", "", ""), _ if lang.dir() == Dir::RTL => ("", "", "", ""),
_ => default, _ => default,
}; };