Merge pull request #73 from JKRhb/multilang-pdf-title
feat: use multi-language data for PDF title
This commit is contained in:
10
lib.typ
10
lib.typ
@@ -206,10 +206,13 @@
|
||||
|
||||
let lang_data = toml("lang.toml")
|
||||
|
||||
show: body => context {
|
||||
set document(
|
||||
author: author.firstname + " " + author.lastname,
|
||||
title: "resume",
|
||||
title: lflib._linguify("resume", lang: language, from: lang_data).ok,
|
||||
)
|
||||
body
|
||||
}
|
||||
|
||||
set text(
|
||||
font: font,
|
||||
@@ -550,10 +553,13 @@
|
||||
closing = default-closing(lang_data)
|
||||
}
|
||||
|
||||
show: body => context {
|
||||
set document(
|
||||
author: author.firstname + " " + author.lastname,
|
||||
title: "cover-letter",
|
||||
title: lflib._linguify("cover-letter", lang: language, from: lang_data).ok,
|
||||
)
|
||||
body
|
||||
}
|
||||
|
||||
set text(
|
||||
font: font,
|
||||
|
||||
Reference in New Issue
Block a user