mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-16 18:43:02 +03:00
Bump i18next from 26.7.2 to 27.1.1 in /web (#24980)
CI / AMD64 Build (push) Canceled after 0s
CI / AMD64 Smoke Test (push) Canceled after 0s
CI / ARM Build (push) Canceled after 0s
CI / Jetson Jetpack 6 (push) Canceled after 0s
CI / AMD64 Extra Build (push) Canceled after 0s
CI / ARM Extra Build (push) Canceled after 0s
CI / Synaptics Build (push) Canceled after 0s
CI / Assemble and push default build (push) Canceled after 0s
CI / AMD64 Build (push) Canceled after 0s
CI / AMD64 Smoke Test (push) Canceled after 0s
CI / ARM Build (push) Canceled after 0s
CI / Jetson Jetpack 6 (push) Canceled after 0s
CI / AMD64 Extra Build (push) Canceled after 0s
CI / ARM Extra Build (push) Canceled after 0s
CI / Synaptics Build (push) Canceled after 0s
CI / Assemble and push default build (push) Canceled after 0s
* Bump i18next from 26.7.2 to 27.1.1 in /web Bumps [i18next](https://github.com/i18next/i18next) from 26.7.2 to 27.1.1. - [Release notes](https://github.com/i18next/i18next/releases) - [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md) - [Commits](https://github.com/i18next/i18next/compare/v26.7.2...v27.1.1) --- updated-dependencies: - dependency-name: i18next dependency-version: 27.1.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * bump react-i18next to 18 and fix i18next 27 types react-i18next 18 peers i18next >= 27.0.1, so the two move together. i18next 27's TFunction no longer fits the hand-written t signatures in the config form, and it rejects undefined as the options argument. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
co-authored by
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Josh Hawkins
parent
0a9ad3cd7e
commit
74a5973f6d
Generated
+20
-35
@@ -47,7 +47,7 @@
|
|||||||
"date-fns-tz": "^3.2.0",
|
"date-fns-tz": "^3.2.0",
|
||||||
"framer-motion": "^14.12.0",
|
"framer-motion": "^14.12.0",
|
||||||
"hls.js": "^1.7.4",
|
"hls.js": "^1.7.4",
|
||||||
"i18next": "^26.7.2",
|
"i18next": "^27.1.1",
|
||||||
"i18next-http-backend": "^4.0.10",
|
"i18next-http-backend": "^4.0.10",
|
||||||
"idb-keyval": "^6.3.0",
|
"idb-keyval": "^6.3.0",
|
||||||
"js-yaml": "^5.5.0",
|
"js-yaml": "^5.5.0",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
"react-dropzone": "^20.2.0",
|
"react-dropzone": "^20.2.0",
|
||||||
"react-grid-layout": "^2.3.0",
|
"react-grid-layout": "^2.3.0",
|
||||||
"react-hook-form": "^7.92.0",
|
"react-hook-form": "^7.92.0",
|
||||||
"react-i18next": "^17.1.13",
|
"react-i18next": "^18.0.1",
|
||||||
"react-icons": "^5.7.0",
|
"react-icons": "^5.7.0",
|
||||||
"react-konva": "^19.3.2",
|
"react-konva": "^19.3.2",
|
||||||
"react-markdown": "^10.1.0",
|
"react-markdown": "^10.1.0",
|
||||||
@@ -350,6 +350,7 @@
|
|||||||
"version": "7.29.7",
|
"version": "7.29.7",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz",
|
||||||
"integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==",
|
"integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
@@ -3183,9 +3184,6 @@
|
|||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -3203,9 +3201,6 @@
|
|||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"libc": [
|
|
||||||
"musl"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -3223,9 +3218,6 @@
|
|||||||
"ppc64"
|
"ppc64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -3243,9 +3235,6 @@
|
|||||||
"s390x"
|
"s390x"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -3263,9 +3252,6 @@
|
|||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -3283,9 +3269,6 @@
|
|||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"libc": [
|
|
||||||
"musl"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -6095,9 +6078,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/i18next": {
|
"node_modules/i18next": {
|
||||||
"version": "26.7.2",
|
"version": "27.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/i18next/-/i18next-26.7.2.tgz",
|
"resolved": "https://registry.npmjs.org/i18next/-/i18next-27.1.1.tgz",
|
||||||
"integrity": "sha512-RsOY3BeaCDdkk52NeJSFAXELQ2rQXBO/tOub6L8ue2ICPfR/FRDWDOfEDg4xMPd1SqO5goVYQ6i72qWEUB/PPw==",
|
"integrity": "sha512-Qq3aJizS3RXQ30crhx9BKQLrHoa6GKpgrOJjVZ9vgj3EBxAddrmVfDNUrAMxSUimw5Jc+ld4SSZUAzf1q4nGyQ==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "individual",
|
"type": "individual",
|
||||||
@@ -6113,6 +6096,9 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22"
|
||||||
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "^5 || ^6 || ^7"
|
"typescript": "^5 || ^6 || ^7"
|
||||||
},
|
},
|
||||||
@@ -9163,25 +9149,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-i18next": {
|
"node_modules/react-i18next": {
|
||||||
"version": "17.1.13",
|
"version": "18.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-17.1.13.tgz",
|
"resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-18.0.1.tgz",
|
||||||
"integrity": "sha512-ZxhOSlyKSKPtbUNPLwYMmE3w3bhoc0jaZJZ6bc7wGOT6cLbrbs//6m01HxCLtFdSjHvFpwFwoPhxxzIlHSs9cw==",
|
"integrity": "sha512-kPWXI0E/lrPj3+/umcKNzYZVnWmEedLiamMzDIHfbs+5ANf6yzvlZsjKou8f7kaGkfMMDLIZBejV+4aSN1CyBw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.29.7",
|
"html-parse-stringify": "^4.0.1"
|
||||||
"html-parse-stringify": "^4.0.1",
|
},
|
||||||
"use-sync-external-store": "^1.6.0"
|
"engines": {
|
||||||
|
"node": ">=22"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"i18next": ">= 26.2.0",
|
"@types/react": "*",
|
||||||
"react": ">= 16.8.0",
|
"i18next": ">= 27.0.1",
|
||||||
|
"react": ">= 18.0.0",
|
||||||
"typescript": "^5 || ^6 || ^7"
|
"typescript": "^5 || ^6 || ^7"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"react-dom": {
|
"@types/react": {
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"react-native": {
|
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
|
|||||||
+2
-2
@@ -59,7 +59,7 @@
|
|||||||
"date-fns-tz": "^3.2.0",
|
"date-fns-tz": "^3.2.0",
|
||||||
"framer-motion": "^14.12.0",
|
"framer-motion": "^14.12.0",
|
||||||
"hls.js": "^1.7.4",
|
"hls.js": "^1.7.4",
|
||||||
"i18next": "^26.7.2",
|
"i18next": "^27.1.1",
|
||||||
"i18next-http-backend": "^4.0.10",
|
"i18next-http-backend": "^4.0.10",
|
||||||
"idb-keyval": "^6.3.0",
|
"idb-keyval": "^6.3.0",
|
||||||
"js-yaml": "^5.5.0",
|
"js-yaml": "^5.5.0",
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
"react-dropzone": "^20.2.0",
|
"react-dropzone": "^20.2.0",
|
||||||
"react-grid-layout": "^2.3.0",
|
"react-grid-layout": "^2.3.0",
|
||||||
"react-hook-form": "^7.92.0",
|
"react-hook-form": "^7.92.0",
|
||||||
"react-i18next": "^17.1.13",
|
"react-i18next": "^18.0.1",
|
||||||
"react-icons": "^5.7.0",
|
"react-icons": "^5.7.0",
|
||||||
"react-konva": "^19.3.2",
|
"react-konva": "^19.3.2",
|
||||||
"react-markdown": "^10.1.0",
|
"react-markdown": "^10.1.0",
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export function ConfigFieldMessage({
|
|||||||
<SeverityIcon severity={severity} />
|
<SeverityIcon severity={severity} />
|
||||||
<AlertDescription>
|
<AlertDescription>
|
||||||
<div className="flex flex-col gap-1">
|
<div className="flex flex-col gap-1">
|
||||||
<span>{t(messageKey, values)}</span>
|
<span>{t(messageKey, values ?? {})}</span>
|
||||||
{docLink && (
|
{docLink && (
|
||||||
<Link
|
<Link
|
||||||
to={getLocaleDocUrl(docLink)}
|
to={getLocaleDocUrl(docLink)}
|
||||||
|
|||||||
@@ -44,7 +44,9 @@ export function ConfigMessageBanner({ messages }: ConfigMessageBannerProps) {
|
|||||||
className="flex items-center [&>svg+div]:translate-y-0 [&>svg]:static [&>svg~*]:pl-2"
|
className="flex items-center [&>svg+div]:translate-y-0 [&>svg]:static [&>svg~*]:pl-2"
|
||||||
>
|
>
|
||||||
<SeverityIcon severity={msg.severity} />
|
<SeverityIcon severity={msg.severity} />
|
||||||
<AlertDescription>{t(msg.messageKey, msg.values)}</AlertDescription>
|
<AlertDescription>
|
||||||
|
{t(msg.messageKey, msg.values ?? {})}
|
||||||
|
</AlertDescription>
|
||||||
</Alert>
|
</Alert>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import type {
|
|||||||
} from "@rjsf/utils";
|
} from "@rjsf/utils";
|
||||||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
||||||
import { LuCircleAlert } from "react-icons/lu";
|
import { LuCircleAlert } from "react-icons/lu";
|
||||||
|
import type { TFunction } from "i18next";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import {
|
import {
|
||||||
buildTranslationPath,
|
buildTranslationPath,
|
||||||
@@ -93,7 +94,7 @@ const resolveErrorFieldLabel = ({
|
|||||||
error: RJSFValidationError;
|
error: RJSFValidationError;
|
||||||
schema: RJSFSchema | undefined;
|
schema: RJSFSchema | undefined;
|
||||||
formContext?: ConfigFormContext;
|
formContext?: ConfigFormContext;
|
||||||
t: (key: string, options?: Record<string, unknown>) => string;
|
t: TFunction;
|
||||||
i18n: ReturnType<typeof useTranslation>["i18n"];
|
i18n: ReturnType<typeof useTranslation>["i18n"];
|
||||||
}): string | undefined => {
|
}): string | undefined => {
|
||||||
const segments = parsePropertyPath(error.property || "");
|
const segments = parsePropertyPath(error.property || "");
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
* for RJSF form fields.
|
* for RJSF form fields.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import type { TFunction } from "i18next";
|
||||||
import type { ConfigFormContext } from "@/types/configForm";
|
import type { ConfigFormContext } from "@/types/configForm";
|
||||||
import { getEffectiveAttributeLabels } from "@/utils/configUtil";
|
import { getEffectiveAttributeLabels } from "@/utils/configUtil";
|
||||||
|
|
||||||
@@ -70,13 +71,13 @@ export function buildTranslationPath(
|
|||||||
*/
|
*/
|
||||||
export function resolveConfigTranslation(
|
export function resolveConfigTranslation(
|
||||||
i18n: { exists: (key: string, opts?: Record<string, unknown>) => boolean },
|
i18n: { exists: (key: string, opts?: Record<string, unknown>) => boolean },
|
||||||
t: (key: string, opts?: Record<string, unknown>) => string,
|
t: TFunction,
|
||||||
translationPath: string,
|
translationPath: string,
|
||||||
suffix: "label" | "description",
|
suffix: "label" | "description",
|
||||||
sectionI18nPrefix?: string,
|
sectionI18nPrefix?: string,
|
||||||
ns?: string,
|
ns?: string,
|
||||||
): string | undefined {
|
): string | undefined {
|
||||||
const opts = ns ? { ns } : undefined;
|
const opts = ns ? { ns } : {};
|
||||||
|
|
||||||
if (
|
if (
|
||||||
sectionI18nPrefix &&
|
sectionI18nPrefix &&
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import type { TFunction } from "i18next";
|
||||||
import type { RendererComponent } from "@/components/config-form/sectionExtras/registry";
|
import type { RendererComponent } from "@/components/config-form/sectionExtras/registry";
|
||||||
import { CameraConfig, FrigateConfig } from "@/types/frigateConfig";
|
import { CameraConfig, FrigateConfig } from "@/types/frigateConfig";
|
||||||
|
|
||||||
@@ -58,7 +59,7 @@ export type ConfigFormContext = {
|
|||||||
fieldDocs?: Record<string, string>;
|
fieldDocs?: Record<string, string>;
|
||||||
restartRequired?: string[];
|
restartRequired?: string[];
|
||||||
requiresRestart?: boolean;
|
requiresRestart?: boolean;
|
||||||
t?: (key: string, options?: Record<string, unknown>) => string;
|
t?: TFunction;
|
||||||
renderers?: Record<string, RendererComponent>;
|
renderers?: Record<string, RendererComponent>;
|
||||||
isProfile?: boolean;
|
isProfile?: boolean;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user