From 444842e570790aa6a3a9b6486788d4b3de2e275c Mon Sep 17 00:00:00 2001 From: DrMint Date: Sat, 5 Mar 2022 16:34:19 +0100 Subject: [PATCH] Added missing translations here and there --- next.config.js | 2 +- src/components/AppLayout.tsx | 12 ++++-------- src/graphql/operation.graphql | 1 + src/graphql/operations-types.ts | 1 + src/pages/404.tsx | 5 ++--- src/pages/index.tsx | 12 +++++------- src/queries/helpers.ts | 10 +++++----- 7 files changed, 19 insertions(+), 24 deletions(-) diff --git a/next.config.js b/next.config.js index f6c43d3..f8dd901 100644 --- a/next.config.js +++ b/next.config.js @@ -3,7 +3,7 @@ module.exports = { swcMinify: true, reactStrictMode: true, i18n: { - locales: ["en", "fr", "ja", "es", "xx"], + locales: ["en", "fr", "ja", "es"], defaultLocale: "en", }, images: { diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index 06516de..bf6c1ed 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -104,12 +104,8 @@ export default function AppLayout(props: AppLayoutProps): JSX.Element { content={`${titlePrefix} - ${ogTitle}`} > - {props.description && ( - <> - - - - )} + + @@ -160,7 +156,7 @@ export default function AppLayout(props: AppLayoutProps): JSX.Element {

- Select one of the options in the sidebar + {props.langui.select_option_sidebar}

@@ -238,7 +234,7 @@ export default function AppLayout(props: AppLayoutProps): JSX.Element { appLayout.languagePanelOpen ? "scale-100" : "scale-0" }`} > -

Select a language

+

{props.langui.select_language}

{router.locales?.sort().map((locale) => (