This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git

commit 433b8d5d1b808fe0b2d6530ceaf2b6ba29126773
Author: shuai <[email protected]>
AuthorDate: Tue Oct 21 10:09:37 2025 +0800

    fix: i18n parameter passing optimization
---
 ui/src/components/TagSelector/index.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/ui/src/components/TagSelector/index.tsx 
b/ui/src/components/TagSelector/index.tsx
index 94e95325..c9eb3c97 100644
--- a/ui/src/components/TagSelector/index.tsx
+++ b/ui/src/components/TagSelector/index.tsx
@@ -297,15 +297,16 @@ const TagSelector: FC<IProps> = ({
 
   const handleTagHint = () => {
     if (!writeInfo || writeInfo.min_tags === undefined || !writeInfo.min_tags) 
{
-      return t(`hint_zero_tags`);
+      return t('hint_zero_tags');
     }
 
     if (writeInfo.min_tags === 1) {
-      return t(`hint`);
+      return t('hint');
     }
 
-    let str: string = t(`hint_more_than_one_tag`);
-    str = str.replace(`{{ min_tags_number }}`, writeInfo.min_tags.toString());
+    const str = t('hint_more_than_one_tag', {
+      min_content_length: writeInfo.min_tags,
+    });
     return str;
   };
 

Reply via email to