Merge pull request #39 from Blezz-tech/main

add russian language
This commit is contained in:
Paul T
2024-06-23 16:44:08 -04:00
committed by GitHub
2 changed files with 15 additions and 2 deletions

View File

@@ -49,3 +49,10 @@ attached = "Ci-joint"
curriculum-vitae = "Curriculum Vitae" curriculum-vitae = "Curriculum Vitae"
sincerely = "Sincèrement" sincerely = "Sincèrement"
[lang.ru]
resume = "Резюме"
dear = "Уважаемый"
cover-letter = "Сопроводительное письмо"
attached = "Прилагается"
curriculum-vitae = "Биографическая справка"
sincerely = "Искренне"

10
lib.typ
View File

@@ -646,7 +646,8 @@
/// Letter heading for a given job position and addressee. /// Letter heading for a given job position and addressee.
/// - job-position (string): The job position you are applying for /// - job-position (string): The job position you are applying for
/// - addressee (string): The person you are addressing the letter to /// - 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") let lang_data = toml("lang.toml")
// TODO: Make this adaptable to content // TODO: Make this adaptable to content
@@ -655,7 +656,12 @@
] ]
pad(top: 1em, bottom: 1em)[ pad(top: 1em, bottom: 1em)[
#text(weight: "light", fill: color-gray)[ #text(weight: "light", fill: color-gray)[
#linguify("dear", from: lang_data) #addressee, #if dear == "" [
#linguify("dear", from: lang_data)
] else [
#dear
]
#addressee,
] ]
] ]
} }