* Object labels with spaces should use correct i18n keys

* Add Hungarian

* Ensure onvif move request has a valid speed before removing

When autotracking zooming is set to `disabled` (or is left out of the config), move_request["Speed"] may not exist, depending on the camera

* Add another frame cache debug log
This commit is contained in:
Josh Hawkins
2025-06-25 16:45:24 -05:00
committed by GitHub
parent 623bc72633
commit f97629433d
14 changed files with 45 additions and 30 deletions
+7 -1
View File
@@ -1,7 +1,13 @@
import i18n from "i18next";
import i18n, { t } from "i18next";
import { initReactI18next } from "react-i18next";
import HttpBackend from "i18next-http-backend";
export const getTranslatedLabel = (label: string) => {
if (!label) return "";
return t(`${label.replace(/\s+/g, "_").toLowerCase()}`, { ns: "objects" });
};
i18n
.use(initReactI18next)
.use(HttpBackend)