We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc7f1d5 commit aa96535Copy full SHA for aa96535
1 file changed
src/components/Footer/Subscribe/Subscribe.tsx
@@ -20,7 +20,12 @@ export default function Subscribe(props) {
20
const [customMessage, setCustomMessage] = useState("")
21
const [emailValid, setEmailValid] = useState(false)
22
23
- i18next.changeLanguage(props.lang)
+
24
+ useEffect(() => {
25
+ setTimeout(() => {
26
+ i18next.changeLanguage(props.lang)
27
+ }, 3000)
28
+ }, [props.lang])
29
30
useEffect(() => {
31
setCustomMessage("")
0 commit comments