mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-16 16:19:47 +10:00
remove dead code, update screenshots, add PWA support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user