Merge pull request #628 from hyoban-fork/fix/channel-i18n

fix: i18n for channel pop
This commit is contained in:
Hakadao
2024-04-22 15:46:31 +08:00
committed by GitHub

View File

@@ -4,7 +4,7 @@ import { isHomePage } from '~/utils/main'
const { t } = useI18n()
const genres = [
const genres = computed(() => [
{ name: t('topbar.logo_dropdown.anime'), icon: '#channel-anime', href: 'https://www.bilibili.com/anime' },
{ name: t('topbar.logo_dropdown.movies'), icon: '#channel-movie', href: 'https://www.bilibili.com/movie' },
{ name: t('topbar.logo_dropdown.chinese_anime'), icon: '#channel-guochuang', href: 'https://www.bilibili.com/guochuang' },
@@ -39,7 +39,7 @@ const genres = [
{ name: t('topbar.logo_dropdown.paid_courses'), icon: '#channel-zhishi', href: 'https://www.bilibili.com/cheese' },
{ name: t('topbar.logo_dropdown.community'), icon: '#channel-blackroom', href: 'https://www.bilibili.com/blackboard/activity-5zJxM3spoS.html' },
{ name: t('topbar.logo_dropdown.music_plus'), icon: '#channel-musicplus', href: 'https://www.bilibili.com/v/musicplus' },
]
])
</script>
<template>