localePath why need check (typeof window === 'undefined')?? #2124
-
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.
Replies: 3 comments 2 replies
-
because on client side the path is different then on server side |
Beta Was this translation helpful? Give feedback.
-
resolved the discussion thanks all for that, |
Beta Was this translation helpful? Give feedback.
because on client side the path is different then on server side