fixup! feat: use multi-language data for PDF title

This commit is contained in:
Jan Romann
2024-10-24 19:27:24 +02:00
parent 8e22fd0369
commit ed24813dd5

22
lib.typ
View File

@@ -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,