mirror of
https://github.com/immich-app/immich.git
synced 2025-12-01 15:59:51 +09:00
feat(web): s (#9663)
This commit is contained in:
@@ -279,4 +279,6 @@ export const handlePromiseError = <T>(promise: Promise<T>): void => {
|
||||
promise.catch((error) => console.error(`[utils.ts]:handlePromiseError ${error}`, error));
|
||||
};
|
||||
|
||||
export const memoryLaneTitle = (yearsAgo: number) => `${yearsAgo} ${yearsAgo ? 'years' : 'year'} ago`;
|
||||
export const s = (count: number) => (count === 1 ? '' : 's');
|
||||
|
||||
export const memoryLaneTitle = (yearsAgo: number) => `year${s(yearsAgo)} ago`;
|
||||
|
||||
Reference in New Issue
Block a user