diff --git a/nodePackages/web/src/components/molecules/LanguageChanger.tsx b/nodePackages/web/src/components/molecules/LanguageChanger.tsx index 288b7f56..957ca937 100644 --- a/nodePackages/web/src/components/molecules/LanguageChanger.tsx +++ b/nodePackages/web/src/components/molecules/LanguageChanger.tsx @@ -1,4 +1,4 @@ -import { A } from '@solidjs/router'; +import { A, useLocation } from '@solidjs/router'; import { TbLanguageHiragana } from 'solid-icons/tb'; import type { Component } from 'solid-js'; import { useLanguageHref } from '../../modules/useLanguageHref'; @@ -10,6 +10,7 @@ import { useLanguageHref } from '../../modules/useLanguageHref'; export const LanguageChanger: Component = () => { const enLink = useLanguageHref('en'); const jaLink = useLanguageHref('ja'); + const location = useLocation(); return (