You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by ro...@apache.org on 2024/09/04 09:49:51 UTC

(incubator-answer) branch fix/i18n created (now 71da9488)

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

robin0716 pushed a change to branch fix/i18n
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


      at 71da9488 refactor(ui): Update i18n fields

This branch includes the following new commits:

     new 71da9488 refactor(ui): Update i18n fields

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(incubator-answer) 01/01: refactor(ui): Update i18n fields

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

robin0716 pushed a commit to branch fix/i18n
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 71da9488add0b8c56d96603806c052bea9592d70
Author: robin <ro...@rnode.me>
AuthorDate: Wed Sep 4 17:49:36 2024 +0800

    refactor(ui): Update i18n fields
---
 i18n/en_US.yaml                                       | 1 +
 ui/src/pages/Admin/Badges/components/Action/index.tsx | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index 70318a38..1a526b1a 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -2158,6 +2158,7 @@ ui:
     badges:
       action: Action
       active: Active
+      activate: Activate
       all: All
       awards: Awards
       deactivate: Deactivate
diff --git a/ui/src/pages/Admin/Badges/components/Action/index.tsx b/ui/src/pages/Admin/Badges/components/Action/index.tsx
index 023e626f..cff07380 100644
--- a/ui/src/pages/Admin/Badges/components/Action/index.tsx
+++ b/ui/src/pages/Admin/Badges/components/Action/index.tsx
@@ -37,7 +37,7 @@ const BadgeOperation = ({ onSelect, status }: Props) => {
         </Dropdown.Toggle>
         <Dropdown.Menu align="end">
           {status === 'inactive' && (
-            <Dropdown.Item eventKey="active">{t('active')}</Dropdown.Item>
+            <Dropdown.Item eventKey="active">{t('activate')}</Dropdown.Item>
           )}
           {status === 'active' && (
             <Dropdown.Item eventKey="inactive">{t('deactivate')}</Dropdown.Item>