Skip to content

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

chore: unused i18n warning (#14916)

Danny Xu12a77372b4ff
diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs
index e7031a1483..fb3dd6ed3a 100644
--- a/frontend/eslint.config.mjs
+++ b/frontend/eslint.config.mjs
@@ -1,5 +1,6 @@
import vueTsEslintConfig from "@vue/eslint-config-typescript";
import pluginVue from "eslint-plugin-vue";
+import vueI18n from '@intlify/eslint-plugin-vue-i18n'
export default [
...pluginVue.configs["flat/essential"],
@@ -11,6 +12,7 @@ export default [
},
rootDir: import.meta.dirname,
}),
+ ...vueI18n.configs['flat/recommended'],
{
ignores: ["**/dist/**", "**/node_modules/**", "**/proto/**"],
},
@@ -24,6 +26,17 @@ export default [
"error",
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_" },
],
+ "@intlify/vue-i18n/no-unused-keys": [
+ "warn",
+ {
+ "src": "./src",
+ "extensions": [".js", ".vue", ".ts", ".tsx"],
+ "ignores": [],
+ "enableFix": false
+ }
+ ],
+ "@intlify/vue-i18n/no-missing-keys": "off",
+ "@intlify/vue-i18n/no-raw-text": "off",
"@typescript-eslint/no-explicit-any": "off",
"vue/no-mutating-props": "error",
"vue/no-unused-components": "error",
@@ -45,5 +58,11 @@ export default [
],
"vue/multi-word-component-names": "off",
},
+ settings: {
+ 'vue-i18n': {
+ localeDir: './src/locales/*.json',
+ messageSyntaxVersion: '^9.0.0'
+ }
+ },
},
];
diff --git a/frontend/package.json b/frontend/package.json
index 2130e05105..0d38765d84 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -92,6 +92,7 @@
},
"devDependencies": {
"@iconify/json": "2.2.286",
+ "@intlify/eslint-plugin-vue-i18n": "^3.2.0",
"@intlify/unplugin-vue-i18n": "6.0.0",
"@rollup/plugin-yaml": "4.1.2",
"@tailwindcss/forms": "0.5.9",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index 00752753b2..eb4c8ccb38 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -221,6 +221,9 @@ importers:
'@iconify/json':
specifier: 2.2.286
version: 2.2.286
+ '@intlify/eslint-plugin-vue-i18n':
+ specifier: ^3.2.0
'@intlify/unplugin-vue-i18n':
specifier: 6.0.0
@@ -1386,6 +1389,16 @@ packages:
resolution: {integrity: sha512-F3snDTQs0MdvnnyzTDTVkOYVAZOE/MHwRvF7mn7Jw1yuih4NrFYLNYIymGlLmq4HU2iIdzYsZ7f47bOcwY73XQ==}
engines: {node: '>= 16'}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-DZyQ4Hk22sC81MP4qiCDuU+LdaYW91A6lCjq8AWPvY3+mGMzhGDfOCzvyR6YBQxtlPjFqMoFk9ylnNYRAQwXtQ==}
+ engines: {node: '>= 16'}
+
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-TOIrD4tJE48WMyVIB8bNeQJJPYo1Prpqnm9Xpn1UZmcqlELhm8hmP8QyJnkgesfbG7hyiX/kvo63W7ClEQmhpg==}
+ engines: {node: '>=18.0.0'}
+ peerDependencies:
+ eslint: ^8.0.0 || ^9.0.0-0
+
'@intlify/[email protected]':
resolution: {integrity: sha512-6GT1BJ852gZ0gItNZN2krX5QAmea+cmdjMvsWohArAZ3GmHdnNANEcF9JjPXAMRtQ6Ux5E269ymamg/+WU6tQA==}
engines: {node: '>= 16'}
@@ -1394,6 +1407,10 @@ packages:
resolution: {integrity: sha512-TGw2uBfuTFTegZf/BHtUQBEKxl7Q/dVGLoqRIdw8lFsp9g/53sYn5iD+0HxIzdYjbWL6BTJMXCPUHp9PxDTRPw==}
engines: {node: '>= 16'}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-YsKKuV4Qv4wrLNsvgWbTf0E40uRv+Qiw1BeLQ0LAxifQuhiMe+hfTIzOMdWj/ZpnTDj4RSZtkXjJM7JDiiB5LQ==}
+ engines: {node: '>= 16'}
+
'@intlify/[email protected]':
resolution: {integrity: sha512-bmsP4L2HqBF6i6uaMqJMcFBONVjKt+siGluRq4Ca4C0q7W2eMaVZr8iCgF9dKbcVXutftkC7D6z2SaSMmLiDyA==}
engines: {node: '>= 16'}
@@ -1406,6 +1423,10 @@ packages:
resolution: {integrity: sha512-lH164+aDDptHZ3dBDbIhRa1dOPQUp+83iugpc+1upTOWCnwyC1PVis6rSWNMMJ8VQxvtHQB9JMib48K55y0PvQ==}
engines: {node: '>= 16'}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-uRAHAxYPeF+G5DBIboKpPgC/Waecd4Jz8ihtkpJQD5ycb5PwXp0k/+hBGl5dAjwF7w+l74kz/PKA8r8OK//RUw==}
+ engines: {node: '>= 16'}
+
'@intlify/[email protected]':
resolution: {integrity: sha512-PhFdVR0YggJcvbFrfXTKRv5S6/DPy7FPBtepVIloDpOvco5FHJYKHyaPXqMMWhN1o8MiD2KnSwS2222zWAQs+A==}
engines: {node: '>= 18'}
@@ -2895,6 +2916,12 @@ packages:
engines: {node: '>=6.0'}
hasBin: true
+ resolution: {integrity: sha512-/u+GQt8NMfXO8w17QendT4gvO5acfxQsAKirAt0LVxDnr2N8YLCVbregaNc/Yhp7NM128DwCaRvr8PLDfeNkQw==}
+ engines: {node: '>=12'}
+ peerDependencies:
+ eslint: '>=6.0.0'
+
resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==}
hasBin: true
@@ -3119,6 +3146,10 @@ packages:
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-OkToC372DtlQeje9/zHIo5CT8lRP/FUgEOKBEhU4e0abL7J7CD24fD9ohiLN5hagG/kWCYj4K5oaxxtj2Z0Dig==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==}
@@ -3188,6 +3219,10 @@ packages:
resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
engines: {node: '>= 4'}
+ resolution: {integrity: sha512-InwqeHHN2XpumIkMvpl/DCJVrAHgCsG5+cn1XlnLWGwtZBm8QJfSusItfrwx81CTp5agNZqpKU2J/ccC5nGT4A==}
+ engines: {node: '>= 4'}
+
resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==}
@@ -3258,6 +3293,9 @@ packages:
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-zJdQ3QTeLye+iphMeK3wks+vXSRFKh68/Pnlw7aOfApFSEIOhYa8P9vwwa6QrImNNBMJTiL1PpYF0f4BxDuEgA==}
+
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
engines: {node: '>=0.12.0'}
@@ -5987,6 +6025,36 @@ snapshots:
'@intlify/message-compiler': 10.0.5
'@intlify/shared': 10.0.5
+ '@intlify/[email protected]':
+ dependencies:
+ '@intlify/message-compiler': 9.14.2
+ '@intlify/shared': 9.14.2
+
+ dependencies:
+ '@eslint/eslintrc': 3.2.0
+ '@intlify/core-base': 9.14.2
+ '@intlify/message-compiler': 9.14.2
+ debug: 4.3.7
+ eslint: 9.16.0([email protected])
+ eslint-compat-utils: 0.6.4([email protected]([email protected]))
+ glob: 10.4.5
+ globals: 15.14.0
+ ignore: 6.0.2
+ import-fresh: 3.3.0
+ is-language-code: 3.1.0
+ js-yaml: 4.1.0
+ json5: 2.2.3
+ jsonc-eslint-parser: 2.4.0
+ lodash: 4.17.21
+ parse5: 7.2.1
+ semver: 7.6.3
+ synckit: 0.9.2
+ vue-eslint-parser: 9.4.3([email protected]([email protected]))
+ yaml-eslint-parser: 1.2.3
+ transitivePeerDependencies:
+ - supports-color
+
'@intlify/[email protected]':
dependencies:
'@intlify/shared': 10.0.5
@@ -5997,12 +6065,19 @@ snapshots:
'@intlify/shared': 11.0.0-rc.1
source-map-js: 1.2.1
+ '@intlify/[email protected]':
+ dependencies:
+ '@intlify/shared': 9.14.2
+ source-map-js: 1.2.1
+
'@intlify/[email protected]': {}
'@intlify/[email protected]': {}
'@intlify/[email protected]': {}
+ '@intlify/[email protected]': {}
+
dependencies:
'@eslint-community/eslint-utils': 4.4.1([email protected]([email protected]))
@@ -7607,6 +7682,11 @@ snapshots:
optionalDependencies:
source-map: 0.6.1
+ dependencies:
+ eslint: 9.16.0([email protected])
+ semver: 7.6.3
+
dependencies:
eslint: 9.16.0([email protected])
@@ -7848,6 +7928,8 @@ snapshots:
+
dependencies:
delegate: 3.2.0
@@ -7908,6 +7990,8 @@ snapshots:
+
@@ -7960,6 +8044,10 @@ snapshots:
dependencies:
is-extglob: 2.1.1
+ dependencies:
+ '@babel/runtime': 7.26.0
+