mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-07 02:18:07 +01:00
Fixes (#18319)
* Add Thai (still need to merge weblate) * Apply attribute logic to all label types * Fix area check --------- Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
@@ -33,6 +33,7 @@ const localeMap: Record<string, () => Promise<Locale>> = {
|
||||
sk: () => import("date-fns/locale/sk").then((module) => module.sk),
|
||||
"yue-Hant": () =>
|
||||
import("date-fns/locale/zh-HK").then((module) => module.zhHK),
|
||||
th: () => import("date-fns/locale/th").then((module) => module.th),
|
||||
};
|
||||
|
||||
export function useDateLocale(): Locale {
|
||||
|
||||
@@ -8,6 +8,7 @@ export const supportedLanguageKeys = [
|
||||
"nb-NO",
|
||||
"zh-CN",
|
||||
"yue-Hant",
|
||||
"th",
|
||||
"ru",
|
||||
"tr",
|
||||
"pl",
|
||||
|
||||
@@ -901,7 +901,9 @@ function FaceAttempt({
|
||||
}
|
||||
|
||||
return imgRef.current.naturalWidth * imgRef.current.naturalHeight;
|
||||
}, [imgRef]);
|
||||
// only refresh when severity changes
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [imgRef.current]);
|
||||
|
||||
// api calls
|
||||
|
||||
|
||||
Reference in New Issue
Block a user