From d9002d8a26d4a365b8000653f3196b83c263b7ec Mon Sep 17 00:00:00 2001 From: Blezz-tech <72557631+Blezz-tech@users.noreply.github.com> Date: Fri, 21 Jun 2024 20:42:40 +0300 Subject: [PATCH 1/3] add russian language --- lang.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lang.toml b/lang.toml index 2d9a7a0..87ea810 100644 --- a/lang.toml +++ b/lang.toml @@ -49,3 +49,10 @@ attached = "Ci-joint" curriculum-vitae = "Curriculum Vitae" sincerely = "Sincèrement" +[lang.ru] +resume = "Резюме" +dear = "Уважаемый" +cover-letter = "Сопроводительное письмо" +attached = "Прилагается" +curriculum-vitae = "Биографическая справка" +sincerely = "Искренне" \ No newline at end of file From 0b5c18ec8822a1f833599d16d82438aa9ea0c6af Mon Sep 17 00:00:00 2001 From: Blezz-tech <72557631+Blezz-tech@users.noreply.github.com> Date: Sat, 22 Jun 2024 16:27:37 +0300 Subject: [PATCH 2/3] added optional option to override the "dear" variable --- lib.typ | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib.typ b/lib.typ index d97fc41..07db6cf 100644 --- a/lib.typ +++ b/lib.typ @@ -646,7 +646,8 @@ /// Letter heading for a given job position and addressee. /// - job-position (string): The job position you are applying for /// - addressee (string): The person you are addressing the letter to -#let letter-heading(job-position: "", addressee: "") = { +/// - dear (string): optional field for redefining the "dear" variable +#let letter-heading(job-position: "", addressee: "", dear: "") = { let lang_data = toml("lang.toml") // TODO: Make this adaptable to content @@ -655,7 +656,12 @@ ] pad(top: 1em, bottom: 1em)[ #text(weight: "light", fill: color-gray)[ - #linguify("dear", from: lang_data) #addressee, + #if dear == "" [ + #linguify("dear", from: lang_data) + ] else [ + #dear + ] + #addressee, ] ] } From aa021a31d75b3d52a4a6d68c772ae933a442f39b Mon Sep 17 00:00:00 2001 From: Paul T Date: Sun, 23 Jun 2024 16:43:41 -0400 Subject: [PATCH 3/3] fix: add new line --- lang.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang.toml b/lang.toml index 87ea810..bee7ae9 100644 --- a/lang.toml +++ b/lang.toml @@ -55,4 +55,4 @@ dear = "Уважаемый" cover-letter = "Сопроводительное письмо" attached = "Прилагается" curriculum-vitae = "Биографическая справка" -sincerely = "Искренне" \ No newline at end of file +sincerely = "Искренне"