diff --git a/lang.toml b/lang.toml index 2d9a7a0..bee7ae9 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 = "Искренне" 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, ] ] }