feat: Add brainrot locale

This commit is contained in:
Jesse Wierzbinski 2024-12-07 23:05:26 +01:00
parent 2ceee4827f
commit c3a2e5e850
No known key found for this signature in database
26 changed files with 355 additions and 36 deletions

View file

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