Skip to content

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

fix(issue): clarify disabled batch action tooltips (#21055)

boojack9fe324b4c8a8
diff --git a/frontend/src/components/IssueTable.i18n.test.ts b/frontend/src/components/IssueTable.i18n.test.ts
new file mode 100644
index 0000000000..b8f466f79b
--- /dev/null
+++ b/frontend/src/components/IssueTable.i18n.test.ts
@@ -0,0 +1,41 @@
+import i18next from "i18next";
+import { describe, expect, test } from "vitest";
+import enUS from "@/locales/en-US.json";
+import esES from "@/locales/es-ES.json";
+import jaJP from "@/locales/ja-JP.json";
+import viVN from "@/locales/vi-VN.json";
+import zhCN from "@/locales/zh-CN.json";
+
+const LOCALES = {
+ "en-US": enUS,
+ "zh-CN": zhCN,
+ "es-ES": esES,
+ "ja-JP": jaJP,
+ "vi-VN": viVN,
+} as const;
+
+describe("IssueTable locale interpolation", () => {
+ test.each(Object.entries(LOCALES))(
+ "interpolates the disabled batch action in %s",
+ (locale, translation) => {
+ const i18n = i18next.createInstance();
+
+ void i18n.init({
+ resources: {
+ [locale]: { translation },
+ },
+ lng: locale,
+ interpolation: {
+ escapeValue: false,
+ },
+ initAsync: false,
+ });
+
+ expect(
+ i18n.t("issue.batch-transition.not-allowed-tips", {
+ operation: "TRANSITION",
+ })
+ ).toContain("TRANSITION");
+ }
+ );
+});
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 0e022349c2..b4ec463f7b 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1372,7 +1372,7 @@
"batch-transition": {
"close": "Close",
"closed": "closed",
- "not-allowed-tips": "Some of selected issues cannot be {{}}",
+ "not-allowed-tips": "Some of the selected issues cannot be {{operation}}",
"reopen": "Reopen",
"reopened": "reopened"
},
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 35530e636a..c7981ae6fd 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1372,7 +1372,7 @@
"batch-transition": {
"close": "Cerrar",
"closed": "cerrado",
- "not-allowed-tips": "Algunos de las incidencias seleccionadas no se pueden {{}}",
+ "not-allowed-tips": "Algunos de las incidencias seleccionadas no se pueden {{operation}}",
"reopen": "Reabrir",
"reopened": "reabierto"
},
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index f7ab1f2370..35c7a8d0f3 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -1372,7 +1372,7 @@
"batch-transition": {
"close": "閉じる",
"closed": "閉まっている",
- "not-allowed-tips": "選択したイシューの一部を {{}} にすることはできません",
+ "not-allowed-tips": "選択したイシューの一部を {{operation}} にすることはできません",
"reopen": "再開",
"reopened": "再開"
},
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index 1386e3fb9f..abb9864093 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -1372,7 +1372,7 @@
"batch-transition": {
"close": "Đóng",
"closed": "đã đóng",
- "not-allowed-tips": "Một số vấn đề đã chọn không thể {{}}",
+ "not-allowed-tips": "Một số vấn đề đã chọn không thể {{operation}}",
"reopen": "Mở lại",
"reopened": "đã mở lại"
},
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index a0f81159ea..c06fb1ca07 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1372,7 +1372,7 @@
"batch-transition": {
"close": "关闭",
"closed": "关闭",
- "not-allowed-tips": "部分选中的工单无法被{{}}",
+ "not-allowed-tips": "部分选中的工单无法被{{operation}}",
"reopen": "重开",
"reopened": "重开"
},