Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个站点安装并创建了两种语言 - 英语和意大利语。从用户那里我得到他来自哪个国家的信息,格式为 - 'en', 'it'
告诉我如何根据收到的数据为用户设置站点语言。或重定向到所需的语言版本。
抱歉,我没有足够的声誉将此作为评论发布,但您是否尝试从 Polylang 设置 -> 检测浏览器语言中激活此功能?