mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Add brainrot locale
This commit is contained in:
parent
2ceee4827f
commit
c3a2e5e850
26 changed files with 355 additions and 36 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue