client side i18n fully implemented

This commit is contained in:
daniel31x13
2024-06-09 09:27:16 -04:00
parent d261bd39ec
commit 71678ba9dd
41 changed files with 677 additions and 637 deletions
+11 -9
View File
@@ -1,5 +1,6 @@
import { isPWA } from "@/lib/client/utils";
import React, { useState } from "react";
import { Trans } from "next-i18next";
type Props = {};
@@ -25,15 +26,16 @@ const InstallApp = (props: Props) => {
/>
</svg>
<p className="w-4/5 text-[0.92rem]">
Install Linkwarden to your home screen for a faster access and
enhanced experience.{" "}
<a
className="underline"
target="_blank"
href="https://docs.linkwarden.app/getting-started/pwa-installation"
>
Learn more
</a>
<Trans
i18nKey="pwa_install_prompt"
components={[
<a
className="underline"
target="_blank"
href="https://docs.linkwarden.app/getting-started/pwa-installation"
/>,
]}
/>
</p>
<button
onClick={() => setIsOpen(false)}