frontend/utils/urls.ts
Jesse Wierzbinski 1cbe94fea6
refactor: 🔥 Remove brainrot locale
Could come back as a community project, I can't maintain it right now
2024-12-25 18:25:15 +01:00

17 lines
359 B
TypeScript

import { languageTag } from "~/paraglide/runtime";
export const wrapUrl = (path: string) => {
return new URL(
path,
identity.value
? `https://${identity.value.instance.domain}`
: window.location.origin,
).toString();
};
export const getLanguageTag = () => {
const tag = languageTag();
return tag;
};