feat: ⬆️ Update Inlang JS to v2

This commit is contained in:
Jesse Wierzbinski 2025-02-14 14:08:21 +01:00
parent 826f3c89b7
commit f41908a3a7
No known key found for this signature in database
11 changed files with 136 additions and 139 deletions

View file

@ -1,5 +1,3 @@
import { languageTag } from "~/paraglide/runtime";
export const wrapUrl = (path: string) => {
return new URL(
path,
@ -8,9 +6,3 @@ export const wrapUrl = (path: string) => {
: window.location.origin,
).toString();
};
export const getLanguageTag = () => {
const tag = languageTag();
return tag === "en-rot" ? "en" : tag;
};