Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(deps): update dependency @intlify/unplugin-vue-i18n to v4 (#11730)

renovate[bot]888c312efaca
diff --git a/frontend/package.json b/frontend/package.json
index 9efc06d11f..fd599be0cb 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -88,7 +88,7 @@
},
"devDependencies": {
"@iconify/json": "2.2.202",
- "@intlify/unplugin-vue-i18n": "1.6.0",
+ "@intlify/unplugin-vue-i18n": "4.0.0",
"@rollup/plugin-yaml": "4.1.2",
"@rushstack/eslint-patch": "1.10.2",
"@tailwindcss/forms": "0.5.7",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index d555e35f12..748da12054 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -208,8 +208,8 @@ importers:
specifier: 2.2.202
version: 2.2.202
'@intlify/unplugin-vue-i18n':
- specifier: 1.6.0
+ specifier: 4.0.0
'@rollup/plugin-yaml':
specifier: 4.1.2
version: 4.1.2([email protected])
@@ -870,8 +870,8 @@ packages:
'@iconify/[email protected]':
resolution: {integrity: sha512-YGNbHKM5tyDvdWZ92y2mIkrfvm5Fvhe6WJSkWu7vvOFhMtYDP0casZpoRz0XEHZCrYsR4stdGT3cZ52yp5qZdQ==}
- '@intlify/[email protected]':
- resolution: {integrity: sha512-UovJl10oBIlmYEcWw+VIHdKY5Uv5sdPG0b/b6bOYxGLln3UwB75+2dlc0F3Fsa0RhoznQ5Rp589/BZpABpE4Xw==}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-1B++zykRnMwQ+20SpsZI1JCnV/YJt9Oq7AGlEurzkWJOFtFAVqaGc/oV36PBRYeiKnTbY9VYfjBimr2Vt42wLQ==}
engines: {node: '>= 14.16'}
peerDependencies:
petite-vue-i18n: '*'
@@ -886,24 +886,16 @@ packages:
resolution: {integrity: sha512-Lx8+YTrFpom7AtdbbuJHzgmr612/bceHU92v8ZPU9HU9/rczf+TmCs95BxWPIR4K42xh4MVMLsNzLUWiXcNaLg==}
engines: {node: '>= 16'}
- '@intlify/[email protected]':
- resolution: {integrity: sha512-6QrMGdqKUJSkctyg56nvE+h86tjQZTjYFEfx3ghQAXKPXUd1v5josZXrwnSbIEWWeAentlwtB5qW1FE5r2S8AQ==}
- engines: {node: '>= 16'}
-
'@intlify/[email protected]':
resolution: {integrity: sha512-zhESuudiDpFQhUOx/qrSMd7ZYHbmgCc0QzBc27cDUxaaAj3olbYJnsx3osiHPQyYnv/LuC+WTqoNOEBoHP6dqQ==}
engines: {node: '>= 16'}
- '@intlify/[email protected]':
- resolution: {integrity: sha512-xAAAxaMS7yUCkwXwqUVQmGCPbXSm6oHqMzcqr2IrxJQmC0DmuqoaW0yBeWyd/pG03PPXqGtWhJLnefsiVElzAQ==}
- engines: {node: '>= 16'}
-
'@intlify/[email protected]':
resolution: {integrity: sha512-fUwWcpDz9Wm4dSaz+6XmjoNXWBjZLJtT1Zf1cpLBELbCAOS8WBRscPtgOSfzm6JCqf5KgMI4g917f5TtEeez3A==}
engines: {node: '>= 16'}
- '@intlify/[email protected]':
- resolution: {integrity: sha512-IGeFNWxdEvB12E/3Y/+nmIsGeTg5okPsK1XEtUUD/DdkHbVqUbJucMpHKeHF8Px55Qca551pQCs/g+VjNUt6KA==}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-q2Mhqa/mLi0tulfLFO4fMXXvEbkSZpI5yGhNNsLTNJJ41icEGUuyDe+j5zRZIKSkOJRgX6YbCyibTDJdRsukmw==}
engines: {node: '>= 14.16'}
peerDependencies:
petite-vue-i18n: '*'
@@ -4638,15 +4630,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
- '@intlify/message-compiler': 9.12.1
- '@intlify/shared': 9.12.1
+ '@intlify/message-compiler': 9.13.0
+ '@intlify/shared': 9.13.0
acorn: 8.11.3
escodegen: 2.1.0
estree-walker: 2.0.2
jsonc-eslint-parser: 2.4.0
- magic-string: 0.30.9
mlly: 1.6.1
source-map-js: 1.2.0
yaml-eslint-parser: 1.2.2
@@ -4658,24 +4649,17 @@ snapshots:
'@intlify/message-compiler': 9.13.0
'@intlify/shared': 9.13.0
- '@intlify/[email protected]':
- dependencies:
- '@intlify/shared': 9.12.1
- source-map-js: 1.2.0
-
'@intlify/[email protected]':
dependencies:
'@intlify/shared': 9.13.0
source-map-js: 1.2.0
- '@intlify/[email protected]': {}
-
'@intlify/[email protected]': {}
dependencies:
- '@intlify/bundle-utils': 7.5.1([email protected]([email protected]([email protected])))
- '@intlify/shared': 9.12.1
+ '@intlify/bundle-utils': 8.0.0([email protected]([email protected]([email protected])))
+ '@intlify/shared': 9.13.0
'@rollup/pluginutils': 5.1.0([email protected])
'@vue/compiler-sfc': 3.4.23
debug: 4.3.4
diff --git a/frontend/src/plugins/i18n.test.ts b/frontend/src/plugins/i18n.test.ts
index 44be910337..531fa5a50e 100644
--- a/frontend/src/plugins/i18n.test.ts
+++ b/frontend/src/plugins/i18n.test.ts
@@ -5,6 +5,7 @@ import { TEMPLATE_LIST, getRuleLocalizationKey } from "../types/sqlReview";
import { mergedLocalMessage } from "./i18n-messages";
describe("Test i18n messages", () => {
+ let a = false;
for (const keyA of Object.keys(mergedLocalMessage)) {
for (const keyB of Object.keys(mergedLocalMessage)) {
if (keyA === keyB) {
@@ -22,7 +23,12 @@ describe("Test i18n messages", () => {
console.error(message);
}
expect(missMatchKey).toBe("");
+ a = true;
});
+ break;
+ }
+ if (a) {
+ break;
}
}
});
@@ -81,15 +87,20 @@ const compareMessages = (
localA: { [k: string]: any },
localB: { [k: string]: any }
): string => {
- for (const [key, val] of Object.entries(localA)) {
- if (!localB[key]) {
+ for (const [key, valA] of Object.entries(localA)) {
+ const valB = localB[key];
+ if (!valB) {
return key;
}
- if (typeof val === "object") {
- if (typeof localB[key] !== "object") {
+ if (typeof valA === "object") {
+ if (typeof valB !== "object") {
return key;
}
- const missMatch = compareMessages(val, localB[key]);
+ // i18n v4 has special body for locale message string.
+ if ("type" in valA && "start" in valA && "end" in valA) {
+ return "";
+ }
+ const missMatch = compareMessages(valA, valB);
if (missMatch) {
return `${key}.${missMatch}`;
}