Skip to content

Commit aa96535

Browse files
committed
save
1 parent fc7f1d5 commit aa96535

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/Footer/Subscribe/Subscribe.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ export default function Subscribe(props) {
2020
const [customMessage, setCustomMessage] = useState("")
2121
const [emailValid, setEmailValid] = useState(false)
2222

23-
i18next.changeLanguage(props.lang)
23+
24+
useEffect(() => {
25+
setTimeout(() => {
26+
i18next.changeLanguage(props.lang)
27+
}, 3000)
28+
}, [props.lang])
2429

2530
useEffect(() => {
2631
setCustomMessage("")

0 commit comments

Comments
 (0)