Skip to content

Commit ecb2672

Browse files
committed
chore(copilot): refresh welcome modal tagline + per-locale font sizing
Tagline copy → "Edit, fill and understand PDFs by chatting with them" with the chat-based interaction phrase highlighted via the existing `<accent>` Trans component (rendered as a blue span). 23 locales updated (translator-agent pass). Each translation places the `<accent>` markers around the natural chat-action phrase in the target language. ja.json absent from the locales directory; falls back to the i18next default per existing config. Per-locale font sizing: en/vi/zh stay at 42px; longer-form locales (romance, slavic, nordic, fi, tr, hi, ar, he) drop from 42px → 38px so the line count stays comparable. The `COMPACT_TAGLINE_LOCALES` heuristic that previously split 48px/42px is reused with the new sizes.
1 parent 4b86b72 commit ecb2672

24 files changed

Lines changed: 29 additions & 29 deletions

copilot/src/components/demo/welcome_modal.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ const TITLE_ID = 'welcome-modal-title'
1313
const ILLUSTRATION_URL = 'https://cdn.simplepdf.com/simple-pdf/assets/common/form-copilot-illustration.png'
1414
const LOGO_URL = 'https://cdn.simplepdf.com/simple-pdf/assets/common/logo-white.png'
1515

16-
// Locales whose `welcomeModal.tagline` translation is short enough to fit
17-
// in the right pane at the default 48px font size. Everything else
18-
// (long-tail romance / slavic / nordic / fi / tr / hi / ar / he) renders
19-
// at 42px so the line count stays roughly the same as EN. CSS `:lang()`
20-
// could do this without JS, but the locale list reads cleanly as code.
16+
// Locales whose `welcomeModal.tagline` translation fits at 42px in the
17+
// right pane. Everything else (longer-form romance / slavic / nordic /
18+
// fi / tr / hi / ar / he) renders at 38px so the line count stays
19+
// roughly comparable. CSS `:lang()` could do this without JS, but the
20+
// locale list reads cleanly as code.
2121
const COMPACT_TAGLINE_LOCALES = ['en', 'vi', 'zh'] as const
2222

2323
// First-load splash. Rendered inline (NOT through createPortal) so the
@@ -32,7 +32,7 @@ export const WelcomeModal = ({ open, onClose, onOpenInfo }: WelcomeModalProps):
3232
const { t, i18n } = useTranslation()
3333
const activeLocale = i18n.language.toLowerCase()
3434
const isCompactLocale = COMPACT_TAGLINE_LOCALES.some((locale) => activeLocale.startsWith(locale))
35-
const taglineFontClass = isCompactLocale ? 'text-[48px]' : 'text-[42px]'
35+
const taglineFontClass = isCompactLocale ? 'text-[42px]' : 'text-[38px]'
3636

3737
useEffect(() => {
3838
if (!open) {

copilot/src/locales/ar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
},
169169
"welcomeModal": {
170170
"title": "مرحبًا بك في SimplePDF Copilot",
171-
"tagline": "<accent>ذكاء اصطناعي يساعد</accent> المستخدمين على تعبئة نماذج PDF خطوة بخطوة",
171+
"tagline": "حرّر ملفات PDF واملأها وافهمها <accent>عبر الدردشة معها</accent>",
172172
"getStarted": "ابدأ الآن",
173173
"howItWorks": "كيف يعمل SimplePDF Copilot",
174174
"close": "إغلاق الترحيب"

copilot/src/locales/cs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
},
163163
"welcomeModal": {
164164
"title": "Vítejte ve SimplePDF Copilot",
165-
"tagline": "<accent>AI, která pomáhá</accent> uživatelům vyplnit PDF formuláře krok za krokem",
165+
"tagline": "Upravujte, vyplňujte a chápejte PDF <accent>pomocí konverzace s nimi</accent>",
166166
"getStarted": "Začít",
167167
"howItWorks": "Jak SimplePDF Copilot funguje",
168168
"close": "Zavřít uvítání"

copilot/src/locales/da.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
},
161161
"welcomeModal": {
162162
"title": "Velkommen til SimplePDF Copilot",
163-
"tagline": "<accent>AI, der hjælper</accent> brugere med at udfylde PDF-formularer trin for trin",
163+
"tagline": "Rediger, udfyld og forstå PDF-filer <accent>ved at chatte med dem</accent>",
164164
"getStarted": "Kom i gang",
165165
"howItWorks": "Sådan fungerer SimplePDF Copilot",
166166
"close": "Luk velkomst"

copilot/src/locales/de.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
},
161161
"welcomeModal": {
162162
"title": "Willkommen bei SimplePDF Copilot",
163-
"tagline": "<accent>KI, die hilft</accent>, PDF-Formulare Schritt für Schritt auszufüllen",
163+
"tagline": "PDFs bearbeiten, ausfüllen und verstehen, <accent>indem Sie mit ihnen chatten</accent>",
164164
"getStarted": "Loslegen",
165165
"howItWorks": "So funktioniert SimplePDF Copilot",
166166
"close": "Begrüßung schließen"

copilot/src/locales/el.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
},
161161
"welcomeModal": {
162162
"title": "Καλώς ήρθατε στο SimplePDF Copilot",
163-
"tagline": "<accent>AI που βοηθά</accent> τους χρήστες να συμπληρώνουν φόρμες PDF βήμα βήμα",
163+
"tagline": "Επεξεργαστείτε, συμπληρώστε και κατανοήστε PDF <accent>συνομιλώντας μαζί τους</accent>",
164164
"getStarted": "Ξεκινήστε",
165165
"howItWorks": "Πώς λειτουργεί το SimplePDF Copilot",
166166
"close": "Κλείσιμο καλωσορίσματος"

copilot/src/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
},
179179
"welcomeModal": {
180180
"title": "Welcome to SimplePDF Copilot",
181-
"tagline": "<accent>AI that helps</accent> users fill PDF forms step by step",
181+
"tagline": "Edit, fill and understand PDFs <accent>by chatting with them</accent>",
182182
"getStarted": "Get started",
183183
"howItWorks": "How SimplePDF Copilot works",
184184
"close": "Close welcome"

copilot/src/locales/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
},
161161
"welcomeModal": {
162162
"title": "Te damos la bienvenida a SimplePDF Copilot",
163-
"tagline": "<accent>IA que ayuda</accent> a los usuarios a completar formularios PDF paso a paso",
163+
"tagline": "Edita, rellena y entiende los PDF <accent>chateando con ellos</accent>",
164164
"getStarted": "Empezar",
165165
"howItWorks": "Cómo funciona SimplePDF Copilot",
166166
"close": "Cerrar bienvenida"

copilot/src/locales/et.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
},
161161
"welcomeModal": {
162162
"title": "Tere tulemast SimplePDF Copilotisse",
163-
"tagline": "<accent>Tehisintellekt, mis aitab</accent> kasutajatel samm-sammult PDF-vorme täita",
163+
"tagline": "Muutke, täitke ja mõistke PDF-e <accent>nendega vesteldes</accent>",
164164
"getStarted": "Alusta",
165165
"howItWorks": "Kuidas SimplePDF Copilot töötab",
166166
"close": "Sulge tervitus"

copilot/src/locales/fi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
},
161161
"welcomeModal": {
162162
"title": "Tervetuloa SimplePDF Copilotiin",
163-
"tagline": "<accent>Tekoäly, joka auttaa</accent> käyttäjiä täyttämään PDF-lomakkeita vaihe vaiheelta",
163+
"tagline": "Muokkaa, täytä ja ymmärrä PDF-tiedostoja <accent>keskustelemalla niiden kanssa</accent>",
164164
"getStarted": "Aloita",
165165
"howItWorks": "Näin SimplePDF Copilot toimii",
166166
"close": "Sulje tervetulo"

0 commit comments

Comments
 (0)