From e1f8e69ce3f42689209ec4ee82694ff70c59b61a Mon Sep 17 00:00:00 2001 From: Xiaohan-Tian <157918347+Xiaohan-Tian@users.noreply.github.com> Date: Sun, 31 May 2026 00:41:44 -0700 Subject: [PATCH] fix: few missed translations --- src/components/MainContent.tsx | 10 ++++++---- src/components/track/TrackInfoItem.tsx | 14 +++++++------- src/i18n/messages/en_us.ts | 8 ++++++++ src/i18n/messages/fr_fr.ts | 8 ++++++++ src/i18n/messages/zh_cn.ts | 8 ++++++++ src/i18n/messages/zh_hk.ts | 8 ++++++++ 6 files changed, 45 insertions(+), 11 deletions(-) diff --git a/src/components/MainContent.tsx b/src/components/MainContent.tsx index f1855b8..e697776 100644 --- a/src/components/MainContent.tsx +++ b/src/components/MainContent.tsx @@ -26,6 +26,7 @@ import { CHORD_REGION_IMPORT_REGION_NAME, resolveChordRegionImportSelection, } from '../util/chordRegionImportUtil'; +import { useI18n } from '../i18n/useI18n'; interface MainContentProps { onTrackClick?: () => void; @@ -34,6 +35,7 @@ interface MainContentProps { const MainContent: React.FC = ({ onTrackClick = () => {}, }) => { + const { t } = useI18n(); const { tracks, globalTracks, @@ -338,8 +340,8 @@ const MainContent: React.FC = ({
= ({