add typst resumé (without profile picture)
All checks were successful
buildbot/nix-eval Build done.
buildbot/nix-build Build done.
buildbot/nix-effects Build done.

This commit is contained in:
2025-10-25 00:15:22 +02:00
parent 61d430836a
commit fd6a778d1f
2 changed files with 162 additions and 0 deletions

22
resumé/localize.typ Normal file
View File

@@ -0,0 +1,22 @@
#let is-translation-dict(d) = d.keys().first().len() == 2
#let localize(lang, s) = {
let localize-dict(s) = {
if is-translation-dict(s) {
localize(lang, s.at(lang))
} else {
let t = (:)
for (k, v) in s {
t.insert(k, localize(lang, v))
}
t
}
}
let localize-array(s) = s.map(localize.with(lang))
if type(s) == array { localize-array(s) }
else if type(s) == dictionary { localize-dict(s) }
else { s }
}