diff --git a/components/AddToHomescreen.tsx b/components/AddToHomescreen.tsx index 4c4e95b4..312894dc 100644 --- a/components/AddToHomescreen.tsx +++ b/components/AddToHomescreen.tsx @@ -1,7 +1,10 @@ import { XIcon } from "@heroicons/react/outline"; import { useState } from "react"; +import { useLocale } from "@lib/hooks/useLocale"; + export default function AddToHomescreen() { + const { t } = useLocale(); const [closeBanner, setCloseBanner] = useState(false); if (typeof window !== "undefined") { @@ -27,9 +30,7 @@ export default function AddToHomescreen() {

- - Add this app to your home screen for faster access and improved experience. - + {t("add_to_homescreen")}

@@ -38,7 +39,7 @@ export default function AddToHomescreen() { onClick={() => setCloseBanner(true)} type="button" className="-mr-1 flex p-2 rounded-md hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-white"> - Dismiss + {t("dismiss")}