diff options
Diffstat (limited to 'library/src/math')
| -rw-r--r-- | library/src/math/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs index 47c28d17..21e5d805 100644 --- a/library/src/math/mod.rs +++ b/library/src/math/mod.rs @@ -34,6 +34,7 @@ use ttf_parser::{GlyphId, Rect}; use typst::eval::{Module, Scope}; use typst::font::{Font, FontWeight}; use typst::model::Guard; +use typst::util::option_eq; use unicode_math_class::MathClass; use self::ctx::*; @@ -277,10 +278,11 @@ impl Count for EquationElem { } impl LocalName for EquationElem { - fn local_name(&self, lang: Lang, _: Option<Region>) -> &'static str { + fn local_name(&self, lang: Lang, region: Option<Region>) -> &'static str { match lang { Lang::ARABIC => "معادلة", Lang::BOKMÅL => "Ligning", + Lang::CHINESE if option_eq(region, "TW") => "方程式", Lang::CHINESE => "等式", Lang::CZECH => "Rovnice", Lang::FRENCH => "Équation", |
