diff --git a/apps/journal/app/entry.client.tsx b/apps/journal/app/entry.client.tsx index 1efd2c4..2e74a89 100644 --- a/apps/journal/app/entry.client.tsx +++ b/apps/journal/app/entry.client.tsx @@ -1,3 +1,4 @@ +import { initI18n } from "@trails-cool/i18n"; import * as Sentry from "@sentry/react"; import { useEffect } from "react"; import { startTransition, StrictMode } from "react"; @@ -27,6 +28,8 @@ Sentry.init({ enabled: import.meta.env.PROD && sentryEnvironment !== "ci", }); +initI18n(); + startTransition(() => { hydrateRoot( document, diff --git a/apps/journal/app/root.tsx b/apps/journal/app/root.tsx index cdd85c1..7a83bf4 100644 --- a/apps/journal/app/root.tsx +++ b/apps/journal/app/root.tsx @@ -4,12 +4,9 @@ import type { LinksFunction } from "react-router"; import type { Route } from "./+types/root"; import * as Sentry from "@sentry/react"; import { useTranslation } from "react-i18next"; -import { initI18n } from "@trails-cool/i18n"; import { getSessionUser } from "~/lib/auth.server"; import stylesheet from "@trails-cool/ui/styles.css?url"; -initI18n(); - export const links: LinksFunction = () => [{ rel: "stylesheet", href: stylesheet }]; export function Layout({ children }: { children: React.ReactNode }) { diff --git a/apps/planner/app/entry.client.tsx b/apps/planner/app/entry.client.tsx index b425aa0..1e7b804 100644 --- a/apps/planner/app/entry.client.tsx +++ b/apps/planner/app/entry.client.tsx @@ -1,3 +1,4 @@ +import { initI18n } from "@trails-cool/i18n"; import * as Sentry from "@sentry/react"; import { useEffect } from "react"; import { startTransition, StrictMode } from "react"; @@ -27,6 +28,8 @@ Sentry.init({ enabled: import.meta.env.PROD && sentryEnvironment !== "ci", }); +initI18n(); + startTransition(() => { hydrateRoot( document, diff --git a/apps/planner/app/root.tsx b/apps/planner/app/root.tsx index ec78097..b0e6aa1 100644 --- a/apps/planner/app/root.tsx +++ b/apps/planner/app/root.tsx @@ -3,11 +3,8 @@ import type { LinksFunction } from "react-router"; import type { Route } from "./+types/root"; import * as Sentry from "@sentry/react"; import { useTranslation } from "react-i18next"; -import { initI18n } from "@trails-cool/i18n"; import stylesheet from "@trails-cool/ui/styles.css?url"; -initI18n(); - export const links: LinksFunction = () => [{ rel: "stylesheet", href: stylesheet }]; export function Layout({ children }: { children: React.ReactNode }) {