parent
46e0730257
commit
b7e551ed81
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue