We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec48104 commit 4c2aaf8Copy full SHA for 4c2aaf8
src/components/Footer/Subscribe/Subscribe.tsx
@@ -20,8 +20,11 @@ export default function Subscribe(props) {
20
const [customMessage, setCustomMessage] = useState("")
21
const [emailValid, setEmailValid] = useState(false)
22
23
- console.log("props.lang", props.lang)
24
- i18next.changeLanguage(props.lang || "en")
+
+ useEffect(() => {
25
+ console.log("props.lang", props.lang)
26
+ i18next.changeLanguage(props.lang || "en")
27
+ }, [props.lang])
28
29
useEffect(() => {
30
setCustomMessage("")
0 commit comments