mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Added Arabic translations (#688)
This commit is contained in:
parent
31eb3b571e
commit
9046678610
@ -286,6 +286,7 @@ impl<T: Into<Value>> From<Celled<T>> for Value {
|
|||||||
impl LocalName for TableElem {
|
impl LocalName for TableElem {
|
||||||
fn local_name(&self, lang: Lang) -> &'static str {
|
fn local_name(&self, lang: Lang) -> &'static str {
|
||||||
match lang {
|
match lang {
|
||||||
|
Lang::ARABIC => "جدول",
|
||||||
Lang::BOKMÅL => "Tabell",
|
Lang::BOKMÅL => "Tabell",
|
||||||
Lang::CHINESE => "表",
|
Lang::CHINESE => "表",
|
||||||
Lang::FRENCH => "Tableau",
|
Lang::FRENCH => "Tableau",
|
||||||
|
@ -274,6 +274,7 @@ impl Count for EquationElem {
|
|||||||
impl LocalName for EquationElem {
|
impl LocalName for EquationElem {
|
||||||
fn local_name(&self, lang: Lang) -> &'static str {
|
fn local_name(&self, lang: Lang) -> &'static str {
|
||||||
match lang {
|
match lang {
|
||||||
|
Lang::ARABIC => "معادلة",
|
||||||
Lang::BOKMÅL => "Ligning",
|
Lang::BOKMÅL => "Ligning",
|
||||||
Lang::CHINESE => "等式",
|
Lang::CHINESE => "等式",
|
||||||
Lang::FRENCH => "Équation",
|
Lang::FRENCH => "Équation",
|
||||||
|
@ -201,6 +201,7 @@ impl Show for BibliographyElem {
|
|||||||
impl LocalName for BibliographyElem {
|
impl LocalName for BibliographyElem {
|
||||||
fn local_name(&self, lang: Lang) -> &'static str {
|
fn local_name(&self, lang: Lang) -> &'static str {
|
||||||
match lang {
|
match lang {
|
||||||
|
Lang::ARABIC => "المراجع",
|
||||||
Lang::BOKMÅL => "Bibliografi",
|
Lang::BOKMÅL => "Bibliografi",
|
||||||
Lang::CHINESE => "参考文献",
|
Lang::CHINESE => "参考文献",
|
||||||
Lang::FRENCH => "Bibliographie",
|
Lang::FRENCH => "Bibliographie",
|
||||||
|
@ -229,6 +229,7 @@ impl Refable for HeadingElem {
|
|||||||
impl LocalName for HeadingElem {
|
impl LocalName for HeadingElem {
|
||||||
fn local_name(&self, lang: Lang) -> &'static str {
|
fn local_name(&self, lang: Lang) -> &'static str {
|
||||||
match lang {
|
match lang {
|
||||||
|
Lang::ARABIC => "الفصل",
|
||||||
Lang::BOKMÅL => "Kapittel",
|
Lang::BOKMÅL => "Kapittel",
|
||||||
Lang::CHINESE => "小节",
|
Lang::CHINESE => "小节",
|
||||||
Lang::FRENCH => "Chapitre",
|
Lang::FRENCH => "Chapitre",
|
||||||
|
@ -252,6 +252,7 @@ impl Show for OutlineElem {
|
|||||||
impl LocalName for OutlineElem {
|
impl LocalName for OutlineElem {
|
||||||
fn local_name(&self, lang: Lang) -> &'static str {
|
fn local_name(&self, lang: Lang) -> &'static str {
|
||||||
match lang {
|
match lang {
|
||||||
|
Lang::ARABIC => "المحتويات",
|
||||||
Lang::BOKMÅL => "Innhold",
|
Lang::BOKMÅL => "Innhold",
|
||||||
Lang::CHINESE => "目录",
|
Lang::CHINESE => "目录",
|
||||||
Lang::FRENCH => "Table des matières",
|
Lang::FRENCH => "Table des matières",
|
||||||
|
@ -202,6 +202,7 @@ impl Finalize for RawElem {
|
|||||||
impl LocalName for RawElem {
|
impl LocalName for RawElem {
|
||||||
fn local_name(&self, lang: Lang) -> &'static str {
|
fn local_name(&self, lang: Lang) -> &'static str {
|
||||||
match lang {
|
match lang {
|
||||||
|
Lang::ARABIC => "قائمة",
|
||||||
Lang::BOKMÅL => "Utskrift",
|
Lang::BOKMÅL => "Utskrift",
|
||||||
Lang::CHINESE => "代码",
|
Lang::CHINESE => "代码",
|
||||||
Lang::FRENCH => "Liste",
|
Lang::FRENCH => "Liste",
|
||||||
|
@ -118,6 +118,7 @@ impl Layout for ImageElem {
|
|||||||
impl LocalName for ImageElem {
|
impl LocalName for ImageElem {
|
||||||
fn local_name(&self, lang: Lang) -> &'static str {
|
fn local_name(&self, lang: Lang) -> &'static str {
|
||||||
match lang {
|
match lang {
|
||||||
|
Lang::ARABIC => "شكل",
|
||||||
Lang::BOKMÅL => "Figur",
|
Lang::BOKMÅL => "Figur",
|
||||||
Lang::CHINESE => "图",
|
Lang::CHINESE => "图",
|
||||||
Lang::FRENCH => "Figure",
|
Lang::FRENCH => "Figure",
|
||||||
|
@ -515,6 +515,7 @@ pub struct Glyph {
|
|||||||
pub struct Lang([u8; 3], u8);
|
pub struct Lang([u8; 3], u8);
|
||||||
|
|
||||||
impl Lang {
|
impl Lang {
|
||||||
|
pub const ARABIC: Self = Self(*b"ar ", 2);
|
||||||
pub const BOKMÅL: Self = Self(*b"nb ", 2);
|
pub const BOKMÅL: Self = Self(*b"nb ", 2);
|
||||||
pub const CHINESE: Self = Self(*b"zh ", 2);
|
pub const CHINESE: Self = Self(*b"zh ", 2);
|
||||||
pub const ENGLISH: Self = Self(*b"en ", 2);
|
pub const ENGLISH: Self = Self(*b"en ", 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user