localePath why need check (typeof window === 'undefined')?? #2124
Answered
by
adrai
synasapmob
asked this question in
Q&A
-
I don't understand why need to make as the same below code?, I mean necessary to check 'typeof window' and what happens when we do not check, the difference between thanks you so read my post, sorry for my bad English ! https://github.com/i18next/next-i18next/blob/master/examples/simple/next-i18next.config.js
|
Beta Was this translation helpful? Give feedback.
Answered by
adrai
Mar 17, 2023
Replies: 3 comments 2 replies
-
because on client side the path is different then on server side |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
synasapmob
-
resolved the discussion thanks all for that, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
because on client side the path is different then on server side