Fix i18n (#20857)
CI / AMD64 Build (push) Has been cancelled
CI / ARM Build (push) Has been cancelled
CI / Jetson Jetpack 6 (push) Has been cancelled
CI / AMD64 Extra Build (push) Has been cancelled
CI / ARM Extra Build (push) Has been cancelled
CI / Synaptics Build (push) Has been cancelled
CI / Assemble and push default build (push) Has been cancelled

* fix: fix the missing i18n key

* fix: fix trackedObject i18n keys count variable

* fix: fix some pages audio label missing i18n

* fix: add 6214d52 missing variable

* fix: add more missing i18n

* fix: add menu missing key
This commit is contained in:
GuoQing Liu
2025-11-11 17:23:30 -06:00
committed by GitHub
parent f1a05d0f9b
commit de066d0062
9 changed files with 84 additions and 17 deletions
+3 -3
View File
@@ -244,12 +244,12 @@ export const getDurationFromTimestamps = (
abbreviated: boolean = false,
): string => {
if (isNaN(start_time)) {
return "Invalid start time";
return i18n.t("time.invalidStartTime", { ns: "common" });
}
let duration = "In Progress";
let duration = i18n.t("time.inProgress", { ns: "common" });
if (end_time !== null) {
if (isNaN(end_time)) {
return "Invalid end time";
return i18n.t("time.invalidEndTime", { ns: "common" });
}
const start = fromUnixTime(start_time);
const end = fromUnixTime(end_time);