One Calendar is a privacy-first calendar web app built with Next.js. It has modern security features, including e2ee, password-protected sharing, and self-destructing share links 📅 calendar.xyehr.cn
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: deploy bug

authored by

Evan Huang and committed by
GitHub
4aae39b9 4bfb625f

+5 -11
+5 -11
app/(app)/app/page.tsx
··· 1 - import * as React from 'react' 2 - import Calendar from "@/components/Calendar" 3 - import { useIsMobile } from "@/hooks/use-mobile" 1 + import Calendar from "@/components/Calendar"; 2 + import { useIsMobile } from "@/hooks/use-mobile"; 4 3 5 4 export default function Home() { 6 5 const isMobile = useIsMobile(); 7 - const userLanguage = navigator.language || navigator.userLanguage; 8 - 9 - const isChinese = userLanguage.startsWith('zh'); 10 - const isEnglish = userLanguage.startsWith('en'); 6 + const language = navigator.language; 11 7 12 8 return ( 13 9 <div> 14 10 {isMobile ? ( 15 11 <div> 16 - {isChinese ? ( 12 + {language.startsWith("zh") ? ( 17 13 <p>请使用电脑打开此页面</p> 18 - ) : isEnglish ? ( 19 - <p>Please open this page on a computer</p> 20 14 ) : ( 21 - <p>请使用电脑打开此页面。/ Please open this page on a computer.</p> 15 + <p>Please open this page on a computer</p> 22 16 )} 23 17 </div> 24 18 ) : (