feat(i18n): add alias type labels and section strings for de/en/es
Adds 16 new keys per language: alias type labels (BIRTH, WIDOWED, DIVORCED, OTHER), section heading, empty state, add form labels, delete confirmation, and ALIAS_NOT_FOUND error code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -479,5 +479,20 @@
|
||||
"scan_collapse": "Scan verkleinern",
|
||||
"transcription_empty_title": "Noch keine Transkription",
|
||||
"transcription_empty_desc": "Zeichne Bereiche auf dem Scan und tippe den Text ab, um eine Transkription zu erstellen.",
|
||||
"transcription_panel_close": "Panel schließen"
|
||||
"transcription_panel_close": "Panel schließen",
|
||||
"person_alias_heading": "Namensverlauf",
|
||||
"person_alias_empty": "Noch keine Namensaenderungen erfasst.",
|
||||
"person_alias_type_BIRTH": "geborene/r",
|
||||
"person_alias_type_WIDOWED": "verwitwete/r",
|
||||
"person_alias_type_DIVORCED": "geschiedene/r",
|
||||
"person_alias_type_OTHER": "Sonstiger Name",
|
||||
"person_alias_add_heading": "Name hinzufuegen",
|
||||
"person_alias_label_type": "Art",
|
||||
"person_alias_label_last_name": "Nachname",
|
||||
"person_alias_label_first_name": "Vorname (optional)",
|
||||
"person_alias_btn_add": "Hinzufuegen",
|
||||
"person_alias_delete_title": "Alias entfernen?",
|
||||
"person_alias_delete_body": "Dieser Name wird aus der Suche entfernt.",
|
||||
"person_alias_btn_delete": "Entfernen",
|
||||
"error_alias_not_found": "Der Namensalias wurde nicht gefunden."
|
||||
}
|
||||
|
||||
@@ -479,5 +479,20 @@
|
||||
"scan_collapse": "Collapse scan",
|
||||
"transcription_empty_title": "No transcription yet",
|
||||
"transcription_empty_desc": "Draw regions on the scan and type the text to create a transcription.",
|
||||
"transcription_panel_close": "Close panel"
|
||||
"transcription_panel_close": "Close panel",
|
||||
"person_alias_heading": "Name history",
|
||||
"person_alias_empty": "No name changes recorded yet.",
|
||||
"person_alias_type_BIRTH": "Birth name",
|
||||
"person_alias_type_WIDOWED": "Name as widow/widower",
|
||||
"person_alias_type_DIVORCED": "Name after divorce",
|
||||
"person_alias_type_OTHER": "Other name",
|
||||
"person_alias_add_heading": "Add name",
|
||||
"person_alias_label_type": "Type",
|
||||
"person_alias_label_last_name": "Last name",
|
||||
"person_alias_label_first_name": "First name (optional)",
|
||||
"person_alias_btn_add": "Add",
|
||||
"person_alias_delete_title": "Remove alias?",
|
||||
"person_alias_delete_body": "This name will be removed from search results.",
|
||||
"person_alias_btn_delete": "Remove",
|
||||
"error_alias_not_found": "The name alias was not found."
|
||||
}
|
||||
|
||||
@@ -479,5 +479,20 @@
|
||||
"scan_collapse": "Reducir escaneo",
|
||||
"transcription_empty_title": "Sin transcripcion",
|
||||
"transcription_empty_desc": "Dibuja regiones en el escaneo y escribe el texto para crear una transcripcion.",
|
||||
"transcription_panel_close": "Cerrar panel"
|
||||
"transcription_panel_close": "Cerrar panel",
|
||||
"person_alias_heading": "Historial de nombres",
|
||||
"person_alias_empty": "Aun no se han registrado cambios de nombre.",
|
||||
"person_alias_type_BIRTH": "Nombre de nacimiento",
|
||||
"person_alias_type_WIDOWED": "Nombre como viuda/viudo",
|
||||
"person_alias_type_DIVORCED": "Nombre tras el divorcio",
|
||||
"person_alias_type_OTHER": "Otro nombre",
|
||||
"person_alias_add_heading": "Agregar nombre",
|
||||
"person_alias_label_type": "Tipo",
|
||||
"person_alias_label_last_name": "Apellido",
|
||||
"person_alias_label_first_name": "Nombre (opcional)",
|
||||
"person_alias_btn_add": "Agregar",
|
||||
"person_alias_delete_title": "Eliminar alias?",
|
||||
"person_alias_delete_body": "Este nombre se eliminara de los resultados de busqueda.",
|
||||
"person_alias_btn_delete": "Eliminar",
|
||||
"error_alias_not_found": "No se encontro el alias de nombre."
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import * as m from '$lib/paraglide/messages.js';
|
||||
*/
|
||||
export type ErrorCode =
|
||||
| 'PERSON_NOT_FOUND'
|
||||
| 'ALIAS_NOT_FOUND'
|
||||
| 'DOCUMENT_NOT_FOUND'
|
||||
| 'DOCUMENT_NO_FILE'
|
||||
| 'FILE_NOT_FOUND'
|
||||
@@ -52,6 +53,8 @@ export function getErrorMessage(code: ErrorCode | string | undefined): string {
|
||||
switch (code) {
|
||||
case 'PERSON_NOT_FOUND':
|
||||
return m.error_person_not_found();
|
||||
case 'ALIAS_NOT_FOUND':
|
||||
return m.error_alias_not_found();
|
||||
case 'DOCUMENT_NOT_FOUND':
|
||||
return m.error_document_not_found();
|
||||
case 'DOCUMENT_NO_FILE':
|
||||
|
||||
Reference in New Issue
Block a user