diff --git a/apps/mana/apps/web/src/lib/i18n/locales/contacts/de.json b/apps/mana/apps/web/src/lib/i18n/locales/contacts/de.json index 39c356d44..9ac44c2ad 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/contacts/de.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/contacts/de.json @@ -215,5 +215,50 @@ "noResultsFor": "Keine Ergebnisse für \"{query}\"", "tagSingular": "Tag", "tagPlural": "Tags" + }, + "page": { + "page_title_html": "Kontakte - Mana", + "title": "Kontakte", + "stats_count": "{n} Kontakte", + "placeholder_search": "Suchen...", + "action_new": "Neu", + "page_my_profile": "Mein Profil", + "page_all": "Alle Kontakte", + "page_favorites": "Favoriten", + "page_birthday_soon": "Bald Geburtstag", + "page_has_email": "Mit E-Mail", + "page_has_phone": "Mit Telefon", + "page_with_company": "Mit Unternehmen", + "page_with_address": "Mit Adresse", + "page_recent": "Kürzlich hinzugefügt", + "page_picker_add_label": "Seite hinzufügen", + "modal_edit_title": "Kontakt bearbeiten", + "modal_new_title": "Neuer Kontakt", + "section_name": "Name", + "section_contact": "Kontakt", + "section_work": "Arbeit", + "section_address": "Adresse", + "section_birthday": "🎂 Geburtstag", + "section_notes": "Notizen", + "section_social": "🔗 Social Media", + "placeholder_first_name": "Vorname", + "placeholder_last_name": "Nachname", + "placeholder_email": "E-Mail", + "placeholder_mobile": "Mobil", + "placeholder_phone": "Telefon", + "placeholder_company": "Unternehmen", + "placeholder_job_title": "Position", + "placeholder_website": "Website", + "placeholder_street": "Straße & Hausnummer", + "placeholder_postal_code": "PLZ", + "placeholder_city": "Stadt", + "placeholder_country": "Land", + "placeholder_notes": "Notizen zum Kontakt...", + "placeholder_linkedin": "LinkedIn URL", + "placeholder_twitter": "Twitter / X", + "placeholder_instagram": "Instagram", + "placeholder_github": "GitHub", + "action_cancel": "Abbrechen", + "action_save": "Speichern" } } diff --git a/apps/mana/apps/web/src/lib/i18n/locales/contacts/en.json b/apps/mana/apps/web/src/lib/i18n/locales/contacts/en.json index 85af5aa1b..317c153e0 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/contacts/en.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/contacts/en.json @@ -215,5 +215,50 @@ "noResultsFor": "No results for \"{query}\"", "tagSingular": "Tag", "tagPlural": "Tags" + }, + "page": { + "page_title_html": "Contacts - Mana", + "title": "Contacts", + "stats_count": "{n} contacts", + "placeholder_search": "Search…", + "action_new": "New", + "page_my_profile": "My profile", + "page_all": "All contacts", + "page_favorites": "Favorites", + "page_birthday_soon": "Birthday soon", + "page_has_email": "With email", + "page_has_phone": "With phone", + "page_with_company": "With company", + "page_with_address": "With address", + "page_recent": "Recently added", + "page_picker_add_label": "Add page", + "modal_edit_title": "Edit contact", + "modal_new_title": "New contact", + "section_name": "Name", + "section_contact": "Contact", + "section_work": "Work", + "section_address": "Address", + "section_birthday": "🎂 Birthday", + "section_notes": "Notes", + "section_social": "🔗 Social media", + "placeholder_first_name": "First name", + "placeholder_last_name": "Last name", + "placeholder_email": "Email", + "placeholder_mobile": "Mobile", + "placeholder_phone": "Phone", + "placeholder_company": "Company", + "placeholder_job_title": "Position", + "placeholder_website": "Website", + "placeholder_street": "Street & number", + "placeholder_postal_code": "ZIP", + "placeholder_city": "City", + "placeholder_country": "Country", + "placeholder_notes": "Notes about this contact…", + "placeholder_linkedin": "LinkedIn URL", + "placeholder_twitter": "Twitter / X", + "placeholder_instagram": "Instagram", + "placeholder_github": "GitHub", + "action_cancel": "Cancel", + "action_save": "Save" } } diff --git a/apps/mana/apps/web/src/lib/i18n/locales/contacts/es.json b/apps/mana/apps/web/src/lib/i18n/locales/contacts/es.json index 51011b383..620fa9b15 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/contacts/es.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/contacts/es.json @@ -215,5 +215,50 @@ "noResultsFor": "Sin resultados para \"{query}\"", "tagSingular": "Etiqueta", "tagPlural": "Etiquetas" + }, + "page": { + "page_title_html": "Contactos - Mana", + "title": "Contactos", + "stats_count": "{n} contactos", + "placeholder_search": "Buscar…", + "action_new": "Nuevo", + "page_my_profile": "Mi perfil", + "page_all": "Todos los contactos", + "page_favorites": "Favoritos", + "page_birthday_soon": "Cumpleaños próximo", + "page_has_email": "Con correo", + "page_has_phone": "Con teléfono", + "page_with_company": "Con empresa", + "page_with_address": "Con dirección", + "page_recent": "Añadidos recientemente", + "page_picker_add_label": "Añadir página", + "modal_edit_title": "Editar contacto", + "modal_new_title": "Nuevo contacto", + "section_name": "Nombre", + "section_contact": "Contacto", + "section_work": "Trabajo", + "section_address": "Dirección", + "section_birthday": "🎂 Cumpleaños", + "section_notes": "Notas", + "section_social": "🔗 Redes sociales", + "placeholder_first_name": "Nombre", + "placeholder_last_name": "Apellido", + "placeholder_email": "Correo", + "placeholder_mobile": "Móvil", + "placeholder_phone": "Teléfono", + "placeholder_company": "Empresa", + "placeholder_job_title": "Puesto", + "placeholder_website": "Web", + "placeholder_street": "Calle y número", + "placeholder_postal_code": "CP", + "placeholder_city": "Ciudad", + "placeholder_country": "País", + "placeholder_notes": "Notas sobre este contacto…", + "placeholder_linkedin": "URL de LinkedIn", + "placeholder_twitter": "Twitter / X", + "placeholder_instagram": "Instagram", + "placeholder_github": "GitHub", + "action_cancel": "Cancelar", + "action_save": "Guardar" } } diff --git a/apps/mana/apps/web/src/lib/i18n/locales/contacts/fr.json b/apps/mana/apps/web/src/lib/i18n/locales/contacts/fr.json index f10465356..a1e9a25eb 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/contacts/fr.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/contacts/fr.json @@ -215,5 +215,50 @@ "noResultsFor": "Aucun résultat pour \"{query}\"", "tagSingular": "Tag", "tagPlural": "Tags" + }, + "page": { + "page_title_html": "Contacts - Mana", + "title": "Contacts", + "stats_count": "{n} contacts", + "placeholder_search": "Rechercher…", + "action_new": "Nouveau", + "page_my_profile": "Mon profil", + "page_all": "Tous les contacts", + "page_favorites": "Favoris", + "page_birthday_soon": "Anniversaire proche", + "page_has_email": "Avec e-mail", + "page_has_phone": "Avec téléphone", + "page_with_company": "Avec entreprise", + "page_with_address": "Avec adresse", + "page_recent": "Ajoutés récemment", + "page_picker_add_label": "Ajouter une page", + "modal_edit_title": "Modifier le contact", + "modal_new_title": "Nouveau contact", + "section_name": "Nom", + "section_contact": "Contact", + "section_work": "Travail", + "section_address": "Adresse", + "section_birthday": "🎂 Anniversaire", + "section_notes": "Notes", + "section_social": "🔗 Réseaux sociaux", + "placeholder_first_name": "Prénom", + "placeholder_last_name": "Nom", + "placeholder_email": "E-mail", + "placeholder_mobile": "Mobile", + "placeholder_phone": "Téléphone", + "placeholder_company": "Entreprise", + "placeholder_job_title": "Poste", + "placeholder_website": "Site web", + "placeholder_street": "Rue et numéro", + "placeholder_postal_code": "CP", + "placeholder_city": "Ville", + "placeholder_country": "Pays", + "placeholder_notes": "Notes sur ce contact…", + "placeholder_linkedin": "URL LinkedIn", + "placeholder_twitter": "Twitter / X", + "placeholder_instagram": "Instagram", + "placeholder_github": "GitHub", + "action_cancel": "Annuler", + "action_save": "Enregistrer" } } diff --git a/apps/mana/apps/web/src/lib/i18n/locales/contacts/it.json b/apps/mana/apps/web/src/lib/i18n/locales/contacts/it.json index ec2f8b6cd..00273d71c 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/contacts/it.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/contacts/it.json @@ -215,5 +215,50 @@ "noResultsFor": "Nessun risultato per \"{query}\"", "tagSingular": "Tag", "tagPlural": "Tag" + }, + "page": { + "page_title_html": "Contatti - Mana", + "title": "Contatti", + "stats_count": "{n} contatti", + "placeholder_search": "Cerca…", + "action_new": "Nuovo", + "page_my_profile": "Il mio profilo", + "page_all": "Tutti i contatti", + "page_favorites": "Preferiti", + "page_birthday_soon": "Compleanno vicino", + "page_has_email": "Con e-mail", + "page_has_phone": "Con telefono", + "page_with_company": "Con azienda", + "page_with_address": "Con indirizzo", + "page_recent": "Aggiunti di recente", + "page_picker_add_label": "Aggiungi pagina", + "modal_edit_title": "Modifica contatto", + "modal_new_title": "Nuovo contatto", + "section_name": "Nome", + "section_contact": "Contatto", + "section_work": "Lavoro", + "section_address": "Indirizzo", + "section_birthday": "🎂 Compleanno", + "section_notes": "Note", + "section_social": "🔗 Social media", + "placeholder_first_name": "Nome", + "placeholder_last_name": "Cognome", + "placeholder_email": "E-mail", + "placeholder_mobile": "Cellulare", + "placeholder_phone": "Telefono", + "placeholder_company": "Azienda", + "placeholder_job_title": "Posizione", + "placeholder_website": "Sito web", + "placeholder_street": "Via e numero", + "placeholder_postal_code": "CAP", + "placeholder_city": "Città", + "placeholder_country": "Paese", + "placeholder_notes": "Note sul contatto…", + "placeholder_linkedin": "URL LinkedIn", + "placeholder_twitter": "Twitter / X", + "placeholder_instagram": "Instagram", + "placeholder_github": "GitHub", + "action_cancel": "Annulla", + "action_save": "Salva" } } diff --git a/apps/mana/apps/web/src/routes/(app)/contacts/+page.svelte b/apps/mana/apps/web/src/routes/(app)/contacts/+page.svelte index 2c8ec6fdd..34cc068fa 100644 --- a/apps/mana/apps/web/src/routes/(app)/contacts/+page.svelte +++ b/apps/mana/apps/web/src/routes/(app)/contacts/+page.svelte @@ -63,16 +63,16 @@ { id: 'favorites', minimized: false }, ]); - const PAGE_META: Record = { - 'my-profile': { title: 'Mein Profil', color: '#8B5CF6' }, - all: { title: 'Alle Kontakte', color: '#3B82F6' }, - favorites: { title: 'Favoriten', color: '#F59E0B' }, - 'birthday-soon': { title: 'Bald Geburtstag', color: '#EC4899' }, - 'has-email': { title: 'Mit E-Mail', color: '#6366F1' }, - 'has-phone': { title: 'Mit Telefon', color: '#22C55E' }, - 'with-company': { title: 'Mit Unternehmen', color: '#8B5CF6' }, - 'with-address': { title: 'Mit Adresse', color: '#F97316' }, - recent: { title: 'Kürzlich hinzugefügt', color: '#6B7280' }, + const PAGE_META: Record = { + 'my-profile': { titleKey: 'contacts.page.page_my_profile', color: '#8B5CF6' }, + all: { titleKey: 'contacts.page.page_all', color: '#3B82F6' }, + favorites: { titleKey: 'contacts.page.page_favorites', color: '#F59E0B' }, + 'birthday-soon': { titleKey: 'contacts.page.page_birthday_soon', color: '#EC4899' }, + 'has-email': { titleKey: 'contacts.page.page_has_email', color: '#6366F1' }, + 'has-phone': { titleKey: 'contacts.page.page_has_phone', color: '#22C55E' }, + 'with-company': { titleKey: 'contacts.page.page_with_company', color: '#8B5CF6' }, + 'with-address': { titleKey: 'contacts.page.page_with_address', color: '#F97316' }, + recent: { titleKey: 'contacts.page.page_recent', color: '#6B7280' }, }; let carouselPages = $derived( @@ -83,7 +83,7 @@ minimized: p.minimized, maximized: p.maximized, widthPx: p.widthPx ?? DEFAULT_WIDTH, - title: meta?.title ?? p.id, + title: meta?.titleKey ? $_(meta.titleKey) : p.id, color: meta?.color ?? '#6B7280', }; }) @@ -126,16 +126,18 @@ - Kontakte - Mana + {$_('contacts.page.page_title_html')}
-

Kontakte

+

{$_('contacts.page.title')}

- {allContacts.filter((c) => !c.isArchived).length} Kontakte + {$_('contacts.page.stats_count', { + values: { n: allContacts.filter((c) => !c.isArchived).length }, + })}

@@ -144,7 +146,7 @@ contactsFilterStore.setSearchQuery(e.currentTarget.value)} class="search-input" @@ -157,7 +159,7 @@
@@ -171,7 +173,7 @@ onMaximize={handleMaximizePage} onRemove={handleRemovePage} onTogglePicker={() => (showPicker = !showPicker)} - addLabel="Seite hinzufügen" + addLabel={$_('contacts.page.page_picker_add_label')} > {#snippet page(p)}

- {isEditing ? 'Kontakt bearbeiten' : 'Neuer Kontakt'} + {isEditing ? $_('contacts.page.modal_edit_title') : $_('contacts.page.modal_new_title')}

diff --git a/scripts/i18n-hardcoded-baseline.json b/scripts/i18n-hardcoded-baseline.json index 380342edb..38d8c100d 100644 --- a/scripts/i18n-hardcoded-baseline.json +++ b/scripts/i18n-hardcoded-baseline.json @@ -221,7 +221,6 @@ "apps/mana/apps/web/src/routes/(app)/comic/new/+page.svelte": 1, "apps/mana/apps/web/src/routes/(app)/companion/+page.svelte": 2, "apps/mana/apps/web/src/routes/(app)/contacts/[id]/+page.svelte": 7, - "apps/mana/apps/web/src/routes/(app)/contacts/+page.svelte": 7, "apps/mana/apps/web/src/routes/(app)/context/documents/[id]/+page.svelte": 3, "apps/mana/apps/web/src/routes/(app)/context/documents/+page.svelte": 5, "apps/mana/apps/web/src/routes/(app)/context/spaces/[id]/+page.svelte": 3,