diff --git a/src/components/FirstStart.vue b/src/components/FirstStart.vue index 233f0f1d..7a7da562 100644 --- a/src/components/FirstStart.vue +++ b/src/components/FirstStart.vue @@ -112,11 +112,17 @@ export default class FirstStart extends Mixins(GlobalMixin, UserConfig) { } // Count total photos - const total = res.data.reduce((acc, day) => acc + day.count, 0); - this.info = this.t("memories", "Found {total} photos in {path}", { - total, - path, - }); + const n = res.data.reduce((acc, day) => acc + day.count, 0); + this.info = this.n( + "memories", + "Found {n} item in {path}", + "Found {n} items in {path}", + n, + { + n, + path, + } + ); this.chosenPath = path; } diff --git a/src/components/modal/AddToAlbumModal.vue b/src/components/modal/AddToAlbumModal.vue index f0adcd43..c79506ba 100644 --- a/src/components/modal/AddToAlbumModal.vue +++ b/src/components/modal/AddToAlbumModal.vue @@ -69,8 +69,15 @@ export default class AddToAlbumModal extends Mixins(GlobalMixin) { this.added(this.photos.filter((p) => fids.includes(p.fileid))); } + const n = this.photosDone; showInfo( - this.t("memories", "{n} photos added to album", { n: this.photosDone }) + this.n( + "memories", + "{n} item added to album", + "{n} items added to album", + n, + { n } + ) ); this.close(); }