feat: support more languages

This commit is contained in:
codytseng
2025-03-02 15:31:32 +08:00
parent d79f5d0722
commit 966861f305
17 changed files with 1570 additions and 45 deletions

View File

@@ -1,6 +1,7 @@
import AboutInfoDialog from '@/components/AboutInfoDialog'
import Donation from '@/components/Donation'
import { Select, SelectContent, SelectItem, SelectTrigger } from '@/components/ui/select'
import { LocalizedLanguageNames } from '@/i18n'
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout'
import { toRelaySettings, toWallet } from '@/lib/link'
import { cn } from '@/lib/utils'
@@ -49,10 +50,11 @@ const SettingsPage = forwardRef(({ index }: { index?: number }, ref) => {
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectItem value="en">English</SelectItem>
<SelectItem value="zh"></SelectItem>
<SelectItem value="pl">Polski</SelectItem>
{Object.entries(LocalizedLanguageNames).map(([key, value]) => (
<SelectItem key={key} value={key}>
{value}
</SelectItem>
))}
</SelectContent>
</Select>
</SettingItem>