This commit is contained in:
 Илья Шалонин 2025-10-29 13:43:43 +05:00
commit 8538ab969a
434 changed files with 44051 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import { config } from "@repo/config";
import { useLocale } from "next-intl";
export function useLocaleCurrency() {
const locale = useLocale();
const localeCurrency =
Object.entries(config.i18n.locales).find(([key]) => key === locale)?.[1]
.currency ?? config.i18n.defaultCurrency;
return localeCurrency;
}