From e4faaab2881c9956a7ca0bda1b3a20022a54d461 Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 21 Jun 2024 05:18:00 -0400 Subject: [PATCH] Use transition instead of fixed text --- src/components/Dropdown.astro | 43 ++++++++++++++++-------------- src/components/global/Head.astro | 9 +++++++ src/components/global/Header.astro | 8 ++++-- 3 files changed, 38 insertions(+), 22 deletions(-) diff --git a/src/components/Dropdown.astro b/src/components/Dropdown.astro index a928989..637b67e 100644 --- a/src/components/Dropdown.astro +++ b/src/components/Dropdown.astro @@ -4,6 +4,10 @@ const { Icon } = Astro.props +// i18n +import i18next, { t } from "i18next"; +import { Trans, HeadHrefLangs } from "astro-i18next/components"; + // Icons import { Menu, @@ -33,35 +37,34 @@ if (Astro.url.pathname.startsWith('/watch')) {
-

Options

-
Language
- Account - Settings - Instances +

{t('dropdown.Options')}

+
{t('dropdown.Language')}
+ {t('dropdown.Account')} + {t('dropdown.Settings')} + {t('dropdown.Instances')} -

Hub

- Apps - Games +

{t('dropdown.Hub')}

+ {t('dropdown.Apps')} + {t('dropdown.Games')} -

Open in...

- Lite Mode - YouTube - Invidious - Pipe - Invidious +

{t('dropdown.Openin')}

+ {t('dropdown.LiteMode')} + {t('dropdown.YouTube')} + {t('dropdown.Invidious')} + {t('dropdown.Pipe')} -

Other

- About - Privacy - Source Code +

{t('dropdown.Other')}

+ {t('dropdown.About')} + {t('dropdown.Privacy')} + {t('dropdown.SourceCode')}