From 6ab5b3300a3092b082a094ed973046ccb05d84f5 Mon Sep 17 00:00:00 2001 From: Emmanuel Pelletier Date: Mon, 5 Aug 2024 17:25:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90(frontend)=20make=20react=20aria=20?= =?UTF-8?q?use=20current=20language?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit react aria has default strings for a few UI elements (like "select an item" on an empty select), make sure it uses currently defined language. --- src/frontend/src/App.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index c9d23c3b..f524befe 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -6,6 +6,7 @@ import { QueryClientProvider } from '@tanstack/react-query' import { useTranslation } from 'react-i18next' import { useLang } from 'hoofd' import { Switch, Route } from 'wouter' +import { I18nProvider } from 'react-aria-components' import { Layout } from './layout/Layout' import { NotFoundScreen } from './components/NotFoundScreen' import { routes } from './routes' @@ -23,15 +24,17 @@ function App() { return ( - - - {Object.entries(routes).map(([, route], i) => ( - - ))} - - - - + + + + {Object.entries(routes).map(([, route], i) => ( + + ))} + + + + + )