diff --git a/frontend/messages/de.json b/frontend/messages/de.json index 48135368..e3f2b2d1 100644 --- a/frontend/messages/de.json +++ b/frontend/messages/de.json @@ -1,6 +1,8 @@ { "$schema": "https://inlang.com/schema/inlang-message-format", "error_annotation_not_found": "Die Annotation wurde nicht gefunden.", + "error_annotation_update_failed": "Annotation konnte nicht gespeichert werden.", + "annotation_edit_mode_active": "Annotation ausgewählt — Ziehpunkte sichtbar.", "annotation_outdated_notice": "Einige Annotationen beziehen sich auf eine frühere Dateiversion und werden nicht angezeigt.", "error_document_not_found": "Das Dokument wurde nicht gefunden.", "error_document_no_file": "Diesem Dokument ist noch keine Datei zugeordnet.", diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 8f55b111..e059f9b0 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -1,6 +1,8 @@ { "$schema": "https://inlang.com/schema/inlang-message-format", "error_annotation_not_found": "Annotation not found.", + "error_annotation_update_failed": "Could not save annotation position.", + "annotation_edit_mode_active": "Annotation selected — resize handles visible.", "annotation_outdated_notice": "Some annotations refer to an earlier file version and are not shown.", "error_document_not_found": "Document not found.", "error_document_no_file": "No file is associated with this document.", diff --git a/frontend/messages/es.json b/frontend/messages/es.json index b4b0ba65..7fbd8c0c 100644 --- a/frontend/messages/es.json +++ b/frontend/messages/es.json @@ -1,6 +1,8 @@ { "$schema": "https://inlang.com/schema/inlang-message-format", "error_annotation_not_found": "Anotación no encontrada.", + "error_annotation_update_failed": "No se pudo guardar la posición de la anotación.", + "annotation_edit_mode_active": "Anotación seleccionada — tiradores visibles.", "annotation_outdated_notice": "Algunas anotaciones hacen referencia a una versión anterior del archivo y no se muestran.", "error_document_not_found": "Documento no encontrado.", "error_document_no_file": "No hay ningún archivo asociado a este documento.", diff --git a/frontend/src/lib/errors.ts b/frontend/src/lib/errors.ts index da769462..23a76344 100644 --- a/frontend/src/lib/errors.ts +++ b/frontend/src/lib/errors.ts @@ -18,6 +18,7 @@ export type ErrorCode = | 'IMPORT_ALREADY_RUNNING' | 'INVALID_RESET_TOKEN' | 'ANNOTATION_NOT_FOUND' + | 'ANNOTATION_UPDATE_FAILED' | 'TRANSCRIPTION_BLOCK_NOT_FOUND' | 'TRANSCRIPTION_BLOCK_CONFLICT' | 'COMMENT_NOT_FOUND' @@ -81,6 +82,8 @@ export function getErrorMessage(code: ErrorCode | string | undefined): string { return m.error_invalid_reset_token(); case 'ANNOTATION_NOT_FOUND': return m.error_annotation_not_found(); + case 'ANNOTATION_UPDATE_FAILED': + return m.error_annotation_update_failed(); case 'TRANSCRIPTION_BLOCK_NOT_FOUND': return m.error_transcription_block_not_found(); case 'TRANSCRIPTION_BLOCK_CONFLICT':