torchv-translate 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import {translateJsVueUseModel, translate} from 'torchv-translate/vue/vue3/translateVue3TS.ts'; // 导入 translate 的 VUE3 的 ts 插件
1
+ import {translateJsVueUseModel, translate} from 'torchv-translate/vue3'; // 导入 translate 的 VUE3 的 ts 插件
2
2
 
3
3
 
4
4
  /*
@@ -1,5 +1,6 @@
1
1
  import { nextTick } from 'vue';
2
- import translate from 'torchv-translate'
2
+ // Import the core translate engine using relative path
3
+ import translate from '../../../translate.js/translate.js';
3
4
 
4
5
  /* 这里不打印 translate.js 的声明 */
5
6
  var originalTrasnalteLog = translate.log;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "torchv-translate",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Two lines of js realize automatic html translation. No need to change the page, no language configuration file, no API key, SEO friendly!",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -14,7 +14,7 @@ var translate = {
14
14
  * 格式:major.minor.patch.date
15
15
  */
16
16
  // AUTO_VERSION_START
17
- version: '1.0.1.20260127',
17
+ version: '1.0.3.20260127',
18
18
  // AUTO_VERSION_END
19
19
  /*
20
20
  当前使用的版本,默认使用v2. 可使用 setUseVersion2();
@@ -8159,7 +8159,7 @@ var translate = {
8159
8159
  host:['https://api.translate.zvo.cn/','https://america.api.translate.zvo.cn/'],
8160
8160
  //host的备用接口,格式同host,可以填写多个,只不过这里是数组格式。只有当主 host 无法连通时,才会采用备host来提供访问。如果为空也就是 [] 则是不采用备方案。
8161
8161
  //backupHost:['',''],
8162
- language:'language.json', //获取支持的语种列表接口
8162
+ language:'', //已禁用,使用本地语言列表或自建后端服务
8163
8163
  translate:'translate.json', //翻译接口
8164
8164
  ip:'ip.json', //根据用户当前ip获取其所在地的语种
8165
8165
  connectTest:'connectTest.json', //用于 translate.js 多节点翻译自动检测网络连通情况