How to detect and use the page language in nextJS (ReferenceError: window is not defined)

后端 未结 0 924
南方客
南方客 2020-12-16 04:05

Im trying to make a site that could identify the country and set the language.

To do this in react i use to call thw window.navigator.language. The entire file:

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题