javascript - 在html中自动翻译网页
问题描述
有没有办法可以根据访问者的位置自动翻译我的页面。因为谷歌翻译不再免费。
我很欣赏任何样品和想法
解决方案
可能您可以使用 i18n js 翻译和地理编码用户位置参数(可在浏览器中navigator.geolocation
通过
文档链接: https ://developer.mozilla.org/fr/docs/Web/API/Geolocation/getCurrentPosition
推荐阅读
- rcpp - 在 Rcpp 中,如何获取模板返回的字符串和数字
- android - Android - 在发布模式下重建后 Apk 大小非常大
- docker - 带有 Docker LetsEncrypt 的 Nginx 反向代理
- spring - 线程“主”org.springframework.beans.factory.UnsatisfiedDependencyException 中的异常:使用名称创建 bean 时出错
- python - ImportError:我的 Mac 上没有名为 networkx 的模块,与 Python 版本冲突
- android - 设置超时并完成 ActivityforResult 活动
- c++ - 如何仅针对一个 EXPECT_CALL 覆盖默认的 ON_CALL 操作并稍后返回默认操作
- c++ - 为什么我不能使用 min 和 max 作为变量名?
- python-3.x - 为什么变量显示为未定义?
- javascript - 使用 Node.js 验证电子邮件地址