Skip to content
Snippets Groups Projects
Commit a337c5be authored by Arie Peterson's avatar Arie Peterson
Browse files

Only show locale switcher in development mode

parent 4e1b7919
No related branches found
No related tags found
1 merge request!12Resolve "Only show locale switcher in dev mode"
......@@ -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 (
<select
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment