torchv-translate 1.0.1 → 1.0.2

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.2",
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.2.20260127',
18
18
  // AUTO_VERSION_END
19
19
  /*
20
20
  当前使用的版本,默认使用v2. 可使用 setUseVersion2();