Skip to content

Commit 9f64216

Browse files
committed
get current language from the intl context
1 parent 992d2f4 commit 9f64216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FeedbackWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const FeedbackWidget: React.FC<FeedbackWidgetProps> = ({ location = "" }) => {
140140

141141
useKeyPress(`Escape`, handleClose)
142142

143-
if (!location.includes("/en/")) return null
143+
if (intl.locale !== "en") return null
144144
const closeButtonSize = "24px"
145145
return (
146146
<>

0 commit comments

Comments
 (0)