File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/components/ListenToPlayer Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import { useContext , useEffect , useState } from "react"
4
4
import { Howl } from "howler"
5
+ import { useLocale } from "next-intl"
5
6
import { Portal } from "@radix-ui/react-portal"
6
7
7
8
import PlayerWidget from "@/components/ListenToPlayer/PlayerWidget"
@@ -16,6 +17,7 @@ import { FeedbackWidgetContext } from "@/contexts/FeedbackWidgetContext"
16
17
import { useTranslation } from "@/hooks/useTranslation"
17
18
18
19
const ListenToPlayer = ( { slug } : { slug : string } ) => {
20
+ const locale = useLocale ( )
19
21
const { setShowFeedbackWidget } = useContext ( FeedbackWidgetContext )
20
22
const { playlist, index } = getPlaylistBySlug ( slug )
21
23
@@ -209,6 +211,8 @@ const ListenToPlayer = ({ slug }: { slug: string }) => {
209
211
210
212
if ( ! playlist . length || index === - 1 ) return null
211
213
214
+ if ( locale !== "en" ) return null
215
+
212
216
return (
213
217
< >
214
218
< TopOfPagePlayer
You can’t perform that action at this time.
0 commit comments