From a337c5beb343b5cab2984067ca677ee1f3a0d76f Mon Sep 17 00:00:00 2001 From: Arie Peterson Date: Wed, 28 Apr 2021 17:18:34 +0200 Subject: [PATCH] Only show locale switcher in development mode --- src/components/locale-switcher/LocaleSwitcher.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/locale-switcher/LocaleSwitcher.tsx b/src/components/locale-switcher/LocaleSwitcher.tsx index c3e8cdc..fbf8762 100644 --- a/src/components/locale-switcher/LocaleSwitcher.tsx +++ b/src/components/locale-switcher/LocaleSwitcher.tsx @@ -2,6 +2,9 @@ import React from 'react'; import { useTranslation } from 'react-i18next'; export const LocaleSwitcher: React.FC = () => { + if (import.meta.env.MODE === 'production') { + return null; + } const { t, i18n } = useTranslation(); return (