首页 > 解决方案 > 在html中自动翻译网页

问题描述

有没有办法可以根据访问者的位置自动翻译我的页面。因为谷歌翻译不再免费。

我很欣赏任何样品和想法

标签: javascriptjquerycsshtml

解决方案


可能您可以使用 i18n js 翻译和地理编码用户位置参数(可在浏览器中navigator.geolocation通过

文档链接: https ://developer.mozilla.org/fr/docs/Web/API/Geolocation/getCurrentPosition

https://github.com/fnando/i18n-js


推荐阅读