Options
-{t('dropdown.Options')}
+Hub
-{t('dropdown.Hub')}
+Open in...
-{t('dropdown.Openin')}
+Other
-
Source Code
+ {t('dropdown.Other')}
+
{t('dropdown.SourceCode')}
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
-{t('dropdown.Options')}
+Hub
-{t('dropdown.Hub')}
+Open in...
-{t('dropdown.Openin')}
+Other
-
Source Code
+ {t('dropdown.Other')}
+
{t('dropdown.SourceCode')}