From 1b7e425c0e73027dc43fb9c51328b3ffa3aff235 Mon Sep 17 00:00:00 2001 From: DrMint Date: Sun, 20 Mar 2022 13:46:36 +0100 Subject: [PATCH] Added more translated fields --- src/components/LanguageSwitcher.tsx | 7 ++----- src/components/Panels/MainPanel.tsx | 6 +++--- src/graphql/operation.graphql | 10 ++++++++++ src/graphql/operations-types.ts | 10 ++++++++++ src/pages/about-us/index.tsx | 14 +++++++++----- 5 files changed, 34 insertions(+), 13 deletions(-) diff --git a/src/components/LanguageSwitcher.tsx b/src/components/LanguageSwitcher.tsx index eb32629..921879a 100644 --- a/src/components/LanguageSwitcher.tsx +++ b/src/components/LanguageSwitcher.tsx @@ -17,14 +17,11 @@ type HorizontalLineProps = { export default function HorizontalLine( props: HorizontalLineProps ): JSX.Element { - const { locales, router } = props; + const { locales, router, langui } = props; return (
-

- This content is not available in the currently selected language. You - can select one the following languages instead: -

+

{langui.language_switch_message}

{locales.map((locale, index) => (