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