From 461c954df95fcdc77a5ddcb663f3c83034374ced Mon Sep 17 00:00:00 2001 From: Paul Tsouchlos Date: Mon, 20 Jan 2025 10:11:31 -0500 Subject: [PATCH] feat: make "job application for" text translatable Fixes #92 --- lang.toml | 9 +++++++++ lib.typ | 2 +- template/coverletter.typ | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lang.toml b/lang.toml index 8eb4d76..045cd65 100644 --- a/lang.toml +++ b/lang.toml @@ -8,6 +8,7 @@ cover-letter = "Cover Letter" attached = "Attached" curriculum-vitae = "Curriculum Vitae" sincerely = "Sincerely" +letter-position-pretext = "Job Application for" [lang.de] resume = "Lebenslauf" @@ -16,6 +17,7 @@ cover-letter = "Anschreiben" attached = "Angehängt" curriculum-vitae = "Lebenslauf" sincerely = "Mit freundlichen Grüßen" +letter-position-pretext = "Bewerbung für" [lang.gr] resume = "Βιογραφικό" @@ -24,6 +26,7 @@ cover-letter = "Συνοδευτική Επιστολή" attached = "Συνημμένο" curriculum-vitae = "Βιογραφικό" sincerely = "Με εκτίμηση" +letter-position-pretext = "Αίτηση εργασίας για" [lang.pt] resume = "Currículo" @@ -32,6 +35,7 @@ cover-letter = "Carta de Apresentação" attached = "Em anexo" curriculum-vitae = "Currículo" sincerely = "Atenciosamente" +letter-position-pretext = "Candidatura a emprego para" [lang.sp] resume = "Currículum" @@ -40,6 +44,7 @@ cover-letter = "Carta de Presentación" attached = "Adjunto" curriculum-vitae = "Currículum" sincerely = "Sinceramente" +letter-position-pretext = "Solicitud de empleo para" [lang.fr] resume = "Curriculum Vitae" @@ -48,6 +53,7 @@ cover-letter = "Lettre de motivation" attached = "Ci-joint" curriculum-vitae = "Curriculum Vitae" sincerely = "Sincèrement" +letter-position-pretext = "Demande d'emploi pour" [lang.ru] resume = "Резюме" @@ -56,6 +62,7 @@ cover-letter = "Сопроводительное письмо" attached = "Прилагается" curriculum-vitae = "Биографическая справка" sincerely = "Искренне" +letter-position-pretext = "Заявление о приеме на работу" [lang.zh] resume = "简历" @@ -64,6 +71,7 @@ cover-letter = "求职信" attached = "附件" curriculum-vitae = "简历" sincerely = "真诚的" +letter-position-pretext = "職位申請" [lang.it] resume = "Curriculum" @@ -72,3 +80,4 @@ cover-letter = "Lettera di presentazione" attached = "Allegato" curriculum-vitae = "Curriculum Vitae" sincerely = "Cordiali saluti" +letter-position-pretext = "Domanda di lavoro per" diff --git a/lib.typ b/lib.typ index ec0e58f..39745fa 100644 --- a/lib.typ +++ b/lib.typ @@ -824,7 +824,7 @@ // TODO: Make this adaptable to content underline(evade: false, stroke: 0.5pt, offset: 0.3em)[ - #text(weight: "bold", size: 12pt)[Job Application for #job-position] + #text(weight: "bold", size: 12pt)[#linguify("letter-position-pretext", from: lang_data) #job-position] ] pad(top: 1em, bottom: 1em)[ #text(weight: "light", fill: color-gray)[ diff --git a/template/coverletter.typ b/template/coverletter.typ index 03bd4ff..eb96aab 100644 --- a/template/coverletter.typ +++ b/template/coverletter.typ @@ -17,6 +17,7 @@ ), ), profile-picture: image("./profile.png"), + // change this to match the language available in 'lang.toml' language: "en", font: "Times New Roman", // Remove the following line to show the footer