mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ⬆️ Update Inlang JS to v2
This commit is contained in:
parent
826f3c89b7
commit
f41908a3a7
11 changed files with 136 additions and 139 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue