remove dead code, update screenshots, add PWA support

This commit is contained in:
Amruth Pillai
2026-01-25 22:06:12 +01:00
parent fa823e1296
commit c08e8081fe
23 changed files with 159 additions and 143 deletions
-8
View File
@@ -1,10 +1,8 @@
import { i18n, type MessageDescriptor, type Messages } from "@lingui/core";
import { msg } from "@lingui/core/macro";
import { useLingui } from "@lingui/react";
import { createIsomorphicFn, createServerFn } from "@tanstack/react-start";
import { getCookie, setCookie } from "@tanstack/react-start/server";
import Cookies from "js-cookie";
import { useMemo } from "react";
import z from "zod";
const localeSchema = z.union([
@@ -146,12 +144,6 @@ export function isRTL(locale: string): boolean {
return RTL_LANGUAGES.has(language);
}
export function useIsRTL() {
const { i18n } = useLingui();
return useMemo(() => isRTL(i18n.locale), [i18n.locale]);
}
export const getLocale = createIsomorphicFn()
.client(() => {
const locale = Cookies.get(storageKey);