mirror of
https://github.com/immich-app/immich.git
synced 2025-12-29 09:14:59 +03:00
fix(web): translations (#10021)
This commit is contained in:
@@ -364,7 +364,7 @@
|
||||
await deleteAlbum({ id: album.id });
|
||||
await goto(backUrl);
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_delete_album'));
|
||||
handleError(error, $t('errors.unable_to_delete_album'));
|
||||
} finally {
|
||||
viewMode = ViewMode.VIEW;
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_save_name'));
|
||||
handleError(error, $t('errors.unable_to_save_name'));
|
||||
}
|
||||
if (personToBeMergedIn.name !== personName && edittingPerson.id === personToBeMergedIn.id) {
|
||||
/*
|
||||
@@ -235,7 +235,7 @@
|
||||
// trigger reactivity
|
||||
people = people;
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_save_name'));
|
||||
handleError(error, $t('errors.unable_to_save_name'));
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -279,7 +279,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_hide_person'));
|
||||
handleError(error, $t('errors.unable_to_hide_person'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -350,7 +350,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_save_name'));
|
||||
handleError(error, $t('errors.unable_to_save_name'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -377,7 +377,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_save_name'));
|
||||
handleError(error, $t('errors.unable_to_save_name'));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
|
||||
await goto(previousRoute, { replaceState: true });
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_hide_person'));
|
||||
handleError(error, $t('errors.unable_to_hide_person'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
}
|
||||
await goto(`${AppRoute.PEOPLE}/${personToBeMergedIn.id}`, { replaceState: true });
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_save_name'));
|
||||
handleError(error, $t('errors.unable_to_save_name'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_save_name'));
|
||||
handleError(error, $t('errors.unable_to_save_name'));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_resolve_duplicate'));
|
||||
handleError(error, $t('errors.unable_to_resolve_duplicate'));
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_create_library'));
|
||||
handleError(error, $t('errors.unable_to_create_library'));
|
||||
} finally {
|
||||
toCreateLibrary = false;
|
||||
await readLibraryList();
|
||||
@@ -143,7 +143,7 @@
|
||||
closeAll();
|
||||
await readLibraryList();
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_update_library'));
|
||||
handleError(error, $t('errors.unable_to_update_library'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_remove_library'));
|
||||
handleError(error, $t('errors.unable_to_remove_library'));
|
||||
} finally {
|
||||
confirmDeleteLibrary = null;
|
||||
deletedLibrary = null;
|
||||
@@ -181,7 +181,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_scan_libraries'));
|
||||
handleError(error, $t('errors.unable_to_scan_libraries'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_scan_library'));
|
||||
handleError(error, $t('errors.unable_to_scan_library'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_scan_library'));
|
||||
handleError(error, $t('errors.unable_to_scan_library'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_scan_library'));
|
||||
handleError(error, $t('errors.unable_to_scan_library'));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
matches = [];
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_repair_items'));
|
||||
handleError(error, $t('errors.unable_to_repair_items'));
|
||||
} finally {
|
||||
repairing = false;
|
||||
}
|
||||
@@ -110,7 +110,7 @@
|
||||
|
||||
notificationController.show({ message: $t('refreshed'), type: NotificationType.Info });
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_load_items'));
|
||||
handleError(error, $t('errors.unable_to_load_items'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
notificationController.show({ message: `Matched 1 item`, type: NotificationType.Info });
|
||||
}
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_check_item'));
|
||||
handleError(error, $t('errors.unable_to_check_item'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
count += await loadAndMatch(filenames.slice(index, index + chunkSize));
|
||||
}
|
||||
} catch (error) {
|
||||
handleError(error, $t('unable_to_check_items'));
|
||||
handleError(error, $t('errors.unable_to_check_items'));
|
||||
} finally {
|
||||
checking = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user