From 996c93ec34208bf2a3f24ca59d4973b4f8113e66 Mon Sep 17 00:00:00 2001 From: Boris Date: Fri, 10 Jan 2025 14:49:15 +0800 Subject: [PATCH] chore: update empty state text for department selector --- packages/common-i18n/src/locales/en/sdk.json | 3 ++- packages/common-i18n/src/locales/zh/sdk.json | 3 ++- .../sdk/src/components/member-selector/DepartmentSelector.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/common-i18n/src/locales/en/sdk.json b/packages/common-i18n/src/locales/en/sdk.json index 2ba7cfe2c..c0fd8ba72 100644 --- a/packages/common-i18n/src/locales/en/sdk.json +++ b/packages/common-i18n/src/locales/en/sdk.json @@ -751,6 +751,7 @@ "departmentSelectorSearchPlaceholder": "Search departments...", "selected": "Selected", "noSelected": "No selected", - "empty": "No members" + "empty": "No members", + "emptyDepartment": "No departments" } } diff --git a/packages/common-i18n/src/locales/zh/sdk.json b/packages/common-i18n/src/locales/zh/sdk.json index 95cfadaa0..d203c0c26 100644 --- a/packages/common-i18n/src/locales/zh/sdk.json +++ b/packages/common-i18n/src/locales/zh/sdk.json @@ -751,6 +751,7 @@ "departmentSelectorSearchPlaceholder": "搜索部门...", "selected": "已选择", "noSelected": "未选择", - "empty": "暂无成员" + "empty": "暂无成员", + "emptyDepartment": "暂无部门" } } diff --git a/packages/sdk/src/components/member-selector/DepartmentSelector.tsx b/packages/sdk/src/components/member-selector/DepartmentSelector.tsx index 32ad90e5e..ab0db709f 100644 --- a/packages/sdk/src/components/member-selector/DepartmentSelector.tsx +++ b/packages/sdk/src/components/member-selector/DepartmentSelector.tsx @@ -143,7 +143,7 @@ export const DepartmentSelector = forwardRef {departments?.length === 0 && !isLoading && (
- {t('memberSelector.empty')} + {t('memberSelector.emptyDepartment')}
)} <>