Replace i18next with next-intl for translations and dynamic imports. Refactor System API calls to use os.platform() for accurate platform detection. Simplify and clean up dependencies in package.json.

This commit is contained in:
natreex
2025-12-24 15:57:18 -05:00
parent a315e96633
commit 55cd5d8ed0
4 changed files with 28 additions and 3504 deletions

View File

@@ -1,7 +1,7 @@
import {faSearch} from "@fortawesome/free-solid-svg-icons";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {ChangeEvent, Dispatch, SetStateAction} from "react";
import {t} from "i18next";
import {useTranslations} from "next-intl";
import TextInput from "@/components/form/TextInput";
export default function SearchBook(
@@ -12,6 +12,7 @@ export default function SearchBook(
searchQuery: string;
setSearchQuery: Dispatch<SetStateAction<string>>
}) {
const t = useTranslations();
return (
<div className="flex items-center relative my-5 w-full max-w-3xl">