diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index 222c0df..cd1f4f4 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -262,7 +262,12 @@ export function NotionPage({ // Use state to store filtered recordMap, initialized with original const [filteredRecordMap, setFilteredRecordMap] = - React.useState(recordMap) + React.useState(() => { + if (config.isI18nEnabled && recordMap) { + return filterRecordMapByLanguage(recordMap, 'en') + } + return recordMap + }) // Apply language filtering only after mount to avoid hydration mismatch React.useEffect(() => {