From 5719d7dbd4084c0c97061c60e31a599631359a4c Mon Sep 17 00:00:00 2001 From: laixingyou Date: Thu, 11 Jan 2024 14:12:27 +0800 Subject: [PATCH] fix: capitalize the first letter (#298) Signed-off-by: laixingyou --- apps/web/i18n | 2 +- .../MetricDetail/MetricContributor/contribution.ts | 10 +++++----- .../DataView/MetricDetail/MetricContributor/index.tsx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/web/i18n b/apps/web/i18n index 15a2eead..e5feb4dd 160000 --- a/apps/web/i18n +++ b/apps/web/i18n @@ -1 +1 @@ -Subproject commit 15a2eeadda6df0a111e69a93b84bbfb6b9a97be6 +Subproject commit e5feb4dd168c70a36a757a7ab805d6d804c10289 diff --git a/apps/web/src/modules/analyze/DataView/MetricDetail/MetricContributor/contribution.ts b/apps/web/src/modules/analyze/DataView/MetricDetail/MetricContributor/contribution.ts index b9e4729c..6dc01b10 100644 --- a/apps/web/src/modules/analyze/DataView/MetricDetail/MetricContributor/contribution.ts +++ b/apps/web/src/modules/analyze/DataView/MetricDetail/MetricContributor/contribution.ts @@ -3,15 +3,15 @@ import { useTranslation } from 'next-i18next'; const useContributionTypeMap = () => { const { t } = useTranslation(); return { - observe: { + Observe: { fork: t('analyze:metric_detail:observe:fork'), star: t('analyze:metric_detail:observe:star'), }, - issue: { + Issue: { issue_creation: t('analyze:metric_detail:issue:issue_creation'), issue_comments: t('analyze:metric_detail:issue:issue_comments'), }, - 'issue admin': { + 'Issue Admin': { issue_labeled: t('analyze:metric_detail:issue_admin:issue_labeled'), issue_unlabeled: t('analyze:metric_detail:issue_admin:issue_unlabeled'), issue_closed: t('analyze:metric_detail:issue_admin:issue_closed'), @@ -65,12 +65,12 @@ const useContributionTypeMap = () => { 'analyze:metric_detail:issue_admin:issue_change_branch' ), }, - code: { + Code: { pr_creation: t('analyze:metric_detail:code:pr_creation'), pr_comments: t('analyze:metric_detail:code:pr_comments'), code_commit: t('analyze:metric_detail:code:code_commit'), }, - 'code admin': { + 'Code Admin': { pr_labeled: t('analyze:metric_detail:code_admin:pr_labeled'), pr_unlabeled: t('analyze:metric_detail:code_admin:pr_unlabeled'), pr_closed: t('analyze:metric_detail:code_admin:pr_closed'), diff --git a/apps/web/src/modules/analyze/DataView/MetricDetail/MetricContributor/index.tsx b/apps/web/src/modules/analyze/DataView/MetricDetail/MetricContributor/index.tsx index 46ee6a93..cbf57b9e 100644 --- a/apps/web/src/modules/analyze/DataView/MetricDetail/MetricContributor/index.tsx +++ b/apps/web/src/modules/analyze/DataView/MetricDetail/MetricContributor/index.tsx @@ -110,7 +110,7 @@ const MetricContributor = () => { - {/*
+
{t('analyze:metric_detail:milestone_persona_filter')} { defaultValue={['core', 'regular']} onChange={onChange} /> -
*/} +
{source}