mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
chore(deps): bump vue-i18n for smoother pluralisation (#6727)
Co-authored-by: Dorian Grasset <doriangrasset@proton.me> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Dorian Grasset
autofix-ci[bot]
parent
d893231c6d
commit
c2fd12238f
@@ -83,7 +83,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<span class="selected-count ms-2">
|
||||
{{ $tc("selectedMonitorCountMsg", selectedMonitorCount) }}
|
||||
{{ $t("selectedMonitorCountMsg", selectedMonitorCount) }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -360,7 +360,7 @@ export default {
|
||||
|
||||
this.bulkActionInProgress = true;
|
||||
activeMonitors.forEach((id) => this.$root.getSocket().emit("pauseMonitor", id, () => {}));
|
||||
this.$root.toastSuccess(this.$tc("pausedMonitorsMsg", activeMonitors.length));
|
||||
this.$root.toastSuccess(this.$t("pausedMonitorsMsg", activeMonitors.length));
|
||||
this.bulkActionInProgress = false;
|
||||
this.cancelSelectMode();
|
||||
},
|
||||
@@ -384,7 +384,7 @@ export default {
|
||||
|
||||
this.bulkActionInProgress = true;
|
||||
inactiveMonitors.forEach((id) => this.$root.getSocket().emit("resumeMonitor", id, () => {}));
|
||||
this.$root.toastSuccess(this.$tc("resumedMonitorsMsg", inactiveMonitors.length));
|
||||
this.$root.toastSuccess(this.$t("resumedMonitorsMsg", inactiveMonitors.length));
|
||||
this.bulkActionInProgress = false;
|
||||
this.cancelSelectMode();
|
||||
},
|
||||
@@ -424,10 +424,10 @@ export default {
|
||||
this.bulkActionInProgress = false;
|
||||
|
||||
if (successCount > 0) {
|
||||
this.$root.toastSuccess(this.$tc("deletedMonitorsMsg", successCount));
|
||||
this.$root.toastSuccess(this.$t("deletedMonitorsMsg", successCount));
|
||||
}
|
||||
if (errorCount > 0) {
|
||||
this.$root.toastError(this.$tc("bulkDeleteErrorMsg", errorCount));
|
||||
this.$root.toastError(this.$t("bulkDeleteErrorMsg", errorCount));
|
||||
}
|
||||
|
||||
this.cancelSelectMode();
|
||||
|
||||
@@ -231,15 +231,11 @@ export default {
|
||||
*/
|
||||
formattedCertExpiryMessage(monitor) {
|
||||
if (monitor?.element?.validCert && monitor?.element?.certExpiryDaysRemaining) {
|
||||
return (
|
||||
monitor.element.certExpiryDaysRemaining +
|
||||
" " +
|
||||
this.$tc("day", monitor.element.certExpiryDaysRemaining)
|
||||
);
|
||||
return this.$t("days", monitor.element.certExpiryDaysRemaining);
|
||||
} else if (monitor?.element?.validCert === false) {
|
||||
return this.$t("noOrBadCertificate");
|
||||
} else {
|
||||
return this.$t("Unknown") + " " + this.$tc("day", 2);
|
||||
return this.$t("unknownDays");
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="tag-monitors" class="form-label">
|
||||
{{ $tc("Monitor", selectedMonitors.length) }}
|
||||
{{ $t("Monitors", selectedMonitors.length) }}
|
||||
</label>
|
||||
<div class="tag-monitors-list">
|
||||
<router-link
|
||||
|
||||
@@ -85,12 +85,12 @@ export default {
|
||||
|
||||
title() {
|
||||
if (this.type === "1y") {
|
||||
return this.$tc("years", 1, { n: 1 });
|
||||
return this.$t("years", 1);
|
||||
}
|
||||
if (this.type === "720") {
|
||||
return this.$tc("days", 30, { n: 30 });
|
||||
return this.$t("days", 30);
|
||||
}
|
||||
return this.$tc("hours", 24, { n: 24 });
|
||||
return this.$t("hours", 24);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
:key="day"
|
||||
class="d-flex align-items-center justify-content-between cert-exp-day-row py-2"
|
||||
>
|
||||
<span>{{ day }} {{ $tc("day", day) }}</span>
|
||||
<span>{{ $t("days", day) }}</span>
|
||||
<button
|
||||
type="button"
|
||||
class="btn-rm-expiry btn btn-outline-danger ms-2 py-1"
|
||||
@@ -79,7 +79,7 @@
|
||||
<ActionInput
|
||||
v-model="tlsExpiryNotifInput"
|
||||
:type="'number'"
|
||||
:placeholder="$tc('days', 1, { n: 1 })"
|
||||
:placeholder="$t('days', 1)"
|
||||
:icon="'plus'"
|
||||
:action="() => addTlsExpiryNotifDay(tlsExpiryNotifInput)"
|
||||
:action-aria-label="$t('Add a new expiry notification day')"
|
||||
@@ -102,7 +102,7 @@
|
||||
:key="day"
|
||||
class="d-flex align-items-center justify-content-between cert-exp-day-row py-2"
|
||||
>
|
||||
<span>{{ day }} {{ $tc("day", day) }}</span>
|
||||
<span>{{ $t("days", day) }}</span>
|
||||
<button
|
||||
type="button"
|
||||
class="btn-rm-expiry btn btn-outline-danger ms-2 py-1"
|
||||
@@ -117,7 +117,7 @@
|
||||
<ActionInput
|
||||
v-model="domainExpiryNotifInput"
|
||||
:type="'number'"
|
||||
:placeholder="$tc('days', 1, { n: 1 })"
|
||||
:placeholder="$t('days', 1)"
|
||||
:icon="'plus'"
|
||||
:action="() => addDomainExpiryNotifDay(domainExpiryNotifInput)"
|
||||
:action-aria-label="$t('Add a new expiry notification day')"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<Tag :item="tag" />
|
||||
</div>
|
||||
<div class="col-5 px-1 d-none d-sm-block">
|
||||
<div>{{ monitorsByTag(tag.id).length }} {{ $tc("Monitor", monitorsByTag(tag.id).length) }}</div>
|
||||
<div>{{ $t("Monitors", monitorsByTag(tag.id).length) }}</div>
|
||||
</div>
|
||||
<div class="col-2 pe-2 pe-lg-3 d-flex justify-content-end">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user