From 5597ff486dba9d0ea9fb4a0acfdb73c690859147 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 8 Feb 2022 15:12:34 +0100
Subject: chore(prism): translate color scheme toggle button

---
 src/components/MDX/CodeBlock/CodeBlock.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/components/MDX/CodeBlock/CodeBlock.tsx')

diff --git a/src/components/MDX/CodeBlock/CodeBlock.tsx b/src/components/MDX/CodeBlock/CodeBlock.tsx
index 0c66311..2f9715d 100644
--- a/src/components/MDX/CodeBlock/CodeBlock.tsx
+++ b/src/components/MDX/CodeBlock/CodeBlock.tsx
@@ -1,5 +1,8 @@
 import { settings } from '@utils/config';
-import { translateCopyButton } from '@utils/helpers/prism';
+import {
+  translateCopyButton,
+  translateToggleButton,
+} from '@utils/helpers/prism';
 import { useRouter } from 'next/router';
 import Prism from 'prismjs';
 import { ReactChildren, useEffect } from 'react';
@@ -28,6 +31,7 @@ const CodeBlock = ({
 
   useEffect(() => {
     translateCopyButton(locale, intl);
+    translateToggleButton(locale, intl);
   }, [intl, locale]);
 
   const { setCodeBlocks } = usePrismTheme();
-- 
cgit v1.2.3

