This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
"use client";
|
||||
|
||||
import { usePathname } from "next/navigation";
|
||||
import { useLocale } from "next-intl";
|
||||
import { Toaster as HotToaster, type ToasterProps } from "react-hot-toast";
|
||||
|
||||
import { resolveLocale } from "@/lib/locale";
|
||||
|
||||
export function Toaster(props: ToasterProps) {
|
||||
const pathname = usePathname();
|
||||
const locale = resolveLocale(pathname.split("/")[1] || "de");
|
||||
const locale = useLocale();
|
||||
const isArabic = locale === "ar";
|
||||
|
||||
const toastClassName = `${isArabic ? "font-arabic tracking-normal" : "font-latin"} text-[13px] leading-5`;
|
||||
|
||||
Reference in New Issue
Block a user