Skip to content

Commit

Permalink
Merge pull request #39 from Blezz-tech/main
Browse files Browse the repository at this point in the history
add russian language
  • Loading branch information
DeveloperPaul123 authored Jun 23, 2024
2 parents 7baa016 + aa021a3 commit 6f3a515
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 7 additions & 0 deletions lang.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,10 @@ attached = "Ci-joint"
curriculum-vitae = "Curriculum Vitae"
sincerely = "Sincèrement"

[lang.ru]
resume = "Резюме"
dear = "Уважаемый"
cover-letter = "Сопроводительное письмо"
attached = "Прилагается"
curriculum-vitae = "Биографическая справка"
sincerely = "Искренне"
10 changes: 8 additions & 2 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
]
]
}
Expand Down

0 comments on commit 6f3a515

Please sign in to comment.