From 363de756bdcc7a1b1bb241220f643ceff3cfd544 Mon Sep 17 00:00:00 2001 From: LuchoTurtle Date: Fri, 15 Sep 2023 23:31:23 +0100 Subject: [PATCH 1/2] chore: Commenting languages due to translations not yet being done. --- src/components/Nav.js | 3 +++ src/i18n/i18n.js | 2 +- src/pages/index.js | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/Nav.js b/src/components/Nav.js index 057b654..1f3524e 100644 --- a/src/components/Nav.js +++ b/src/components/Nav.js @@ -11,7 +11,9 @@ function menuFlags() { // Checking if location is undefined because browser globals are undefined before Gatsby building // Only show flags when the user is not on the landing page if (typeof location !== `undefined` && location.pathname !== '/') { + return null return ( + {/*
{ i18n.changeLanguage('pt'); @@ -26,6 +28,7 @@ function menuFlags() {
+ */} ) } } diff --git a/src/i18n/i18n.js b/src/i18n/i18n.js index 330ec01..6c879a8 100644 --- a/src/i18n/i18n.js +++ b/src/i18n/i18n.js @@ -68,7 +68,7 @@ i18n .init({ resources, detection, - fallbackLng: 'en', + fallbackLng: 'pt', ns: ['landing', 'cta', 'notFound', 'sidebar', 'events', 'history', 'wine_vineyards', 'faq', 'about_us', 'gardens', 'photo_gallery'], defaultNS: 'landing', diff --git a/src/pages/index.js b/src/pages/index.js index f296fce..2986068 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -31,7 +31,8 @@ function IndexPage({data}) {