fix: replace hardcoded Fehler fallbacks with t(common.unknownError)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ulas
2026-03-31 23:13:41 +02:00
parent 29e334c114
commit a21fe6afdd
6 changed files with 12 additions and 10 deletions
+3 -3
View File
@@ -447,7 +447,7 @@ function openNoteModal({ mode, note = null }) {
renderGrid();
window.oikos?.showToast(mode === 'create' ? t('notes.createdToast') : t('notes.savedToast'), 'success');
} catch (err) {
window.oikos?.showToast(err.data?.error ?? 'Fehler', 'error');
window.oikos?.showToast(err.data?.error ?? t('common.unknownError'), 'error');
btnError(saveBtn);
saveBtn.disabled = false;
saveBtn.textContent = isEdit ? t('common.save') : t('common.create');
@@ -469,7 +469,7 @@ async function togglePin(id) {
state.notes.sort((a, b) => b.pinned - a.pinned);
renderGrid();
} catch (err) {
window.oikos?.showToast(err.data?.error ?? 'Fehler', 'error');
window.oikos?.showToast(err.data?.error ?? t('common.unknownError'), 'error');
}
}
@@ -482,7 +482,7 @@ async function deleteNote(id) {
vibrate([30, 50, 30]);
window.oikos?.showToast(t('notes.deletedToast'), 'success');
} catch (err) {
window.oikos?.showToast(err.data?.error ?? 'Fehler', 'error');
window.oikos?.showToast(err.data?.error ?? t('common.unknownError'), 'error');
}
}