更新 translate.js 为最新 v3.12.4.20250110 版本,修复控制台报错 TypeError: Cannot read

properties of undefined (reading 'appendChild')
(注意,我用在线的测试过,完美没问题,但是本地开发不会vue每安装环境所以并没有实际编译运行测试,还需要简单试一下)
This commit is contained in:
鬼画符 2025-01-10 14:38:03 +08:00
parent 9f08846531
commit 5f2d12f5dd
2 changed files with 1001 additions and 484 deletions

View File

@ -274,11 +274,11 @@
translate.language.setLocal('chinese_simplified')
translate.service.use('client.edge')
//开启html页面变化的监控对变化部分会进行自动翻译
translate.listener.start()
translate.listener.start()
//不显示语言选择标签
translate.selectLanguageTag.show = false;
//执行翻译初始化操作显示出select语言选择
translate.execute()
//不显示语言选择标签
translate.selectLanguageTag.show = false
</script>
</head>

File diff suppressed because it is too large Load Diff