@intlayer/docs 7.3.12 → 7.3.13
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.
- package/docs/ar/intlayer_with_nuxt.md +4 -32
- package/docs/de/intlayer_with_nuxt.md +4 -32
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/en/intlayer_with_nuxt.md +7 -32
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/en-GB/intlayer_with_nuxt.md +4 -32
- package/docs/es/intlayer_with_nuxt.md +4 -32
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/fr/intlayer_with_nuxt.md +4 -32
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/hi/intlayer_with_nuxt.md +4 -32
- package/docs/id/intlayer_with_nuxt.md +4 -32
- package/docs/it/intlayer_with_nuxt.md +4 -32
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/ja/intlayer_with_nuxt.md +4 -32
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/ko/intlayer_with_nuxt.md +4 -32
- package/docs/pl/intlayer_with_nuxt.md +4 -32
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/pt/intlayer_with_nuxt.md +4 -32
- package/docs/ru/intlayer_with_nuxt.md +4 -32
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/tr/intlayer_with_nuxt.md +4 -32
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/vi/intlayer_with_nuxt.md +4 -32
- package/docs/zh/intlayer_with_nuxt.md +4 -32
- package/package.json +10 -11
|
@@ -15,7 +15,7 @@ slugs:
|
|
|
15
15
|
- environment
|
|
16
16
|
- nuxt-and-vue
|
|
17
17
|
applicationTemplate: https://github.com/aymericzip/intlayer-nuxt-4-template
|
|
18
|
-
youtubeVideo: https://www.youtube.com/watch?v=
|
|
18
|
+
youtubeVideo: https://www.youtube.com/watch?v=nhUcUAVQ6eQ
|
|
19
19
|
history:
|
|
20
20
|
- version: 7.3.11
|
|
21
21
|
date: 2025-12-07
|
|
@@ -46,20 +46,10 @@ Với Intlayer, bạn có thể:
|
|
|
46
46
|
|
|
47
47
|
## Hướng dẫn từng bước để thiết lập Intlayer trong ứng dụng Nuxt
|
|
48
48
|
|
|
49
|
-
<iframe
|
|
50
|
-
src="https://stackblitz.com/github/aymericzip/intlayer-nuxt-4-template?embed=1&ctl=1&file=intlayer.config.ts"
|
|
51
|
-
className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
|
|
52
|
-
title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
|
|
53
|
-
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
|
|
54
|
-
loading="lazy"
|
|
55
|
-
/>
|
|
56
|
-
|
|
57
|
-
### Bước 1: Cài đặt các phụ thuộc
|
|
58
|
-
|
|
59
49
|
<Tab defaultTab="video">
|
|
60
50
|
<TabItem label="Video" value="video">
|
|
61
51
|
|
|
62
|
-
<iframe title="Cách dịch ứng dụng Nuxt và Vue của bạn bằng Intlayer? Khám phá Intlayer" class="m-auto aspect-[16/9] w-full overflow-hidden rounded-lg border-0" allow="autoplay; gyroscope;" loading="lazy" width="1080" height="auto" src="https://www.youtube.com/embed/
|
|
52
|
+
<iframe title="Cách dịch ứng dụng Nuxt và Vue của bạn bằng Intlayer? Khám phá Intlayer" class="m-auto aspect-[16/9] w-full overflow-hidden rounded-lg border-0" allow="autoplay; gyroscope;" loading="lazy" width="1080" height="auto" src="https://www.youtube.com/embed/nhUcUAVQ6eQ?autoplay=0&origin=http://intlayer.org&controls=0&rel=1"/>
|
|
63
53
|
|
|
64
54
|
</TabItem>
|
|
65
55
|
<TabItem label="Mã nguồn" value="code">
|
|
@@ -77,6 +67,8 @@ Với Intlayer, bạn có thể:
|
|
|
77
67
|
|
|
78
68
|
Xem [Application Template](https://github.com/aymericzip/intlayer-nuxt-4-template) trên GitHub.
|
|
79
69
|
|
|
70
|
+
### Bước 1: Cài đặt các phụ thuộc
|
|
71
|
+
|
|
80
72
|
Cài đặt các gói cần thiết bằng npm:
|
|
81
73
|
|
|
82
74
|
```bash packageManager="npm"
|
|
@@ -651,26 +643,6 @@ module.exports = aboutPageContent;
|
|
|
651
643
|
}
|
|
652
644
|
```
|
|
653
645
|
|
|
654
|
-
### Cấu hình TypeScript
|
|
655
|
-
|
|
656
|
-
Intlayer sử dụng module augmentation để tận dụng các lợi ích của TypeScript và làm cho codebase của bạn mạnh mẽ hơn.
|
|
657
|
-
|
|
658
|
-

|
|
659
|
-
|
|
660
|
-

|
|
661
|
-
|
|
662
|
-
Đảm bảo cấu hình TypeScript của bạn bao gồm các kiểu được tạo tự động.
|
|
663
|
-
|
|
664
|
-
```json5 fileName="tsconfig.json"
|
|
665
|
-
{
|
|
666
|
-
// ... Các cấu hình TypeScript hiện có của bạn
|
|
667
|
-
"include": [
|
|
668
|
-
// ... Các cấu hình TypeScript hiện có của bạn
|
|
669
|
-
".intlayer/**/*.ts", // Bao gồm các kiểu được tạo tự động
|
|
670
|
-
],
|
|
671
|
-
}
|
|
672
|
-
```
|
|
673
|
-
|
|
674
646
|
### Cấu hình Git
|
|
675
647
|
|
|
676
648
|
Khuyến nghị bỏ qua các tệp được tạo bởi Intlayer. Điều này giúp bạn tránh việc commit chúng vào kho Git của mình.
|
|
@@ -15,7 +15,7 @@ slugs:
|
|
|
15
15
|
- environment
|
|
16
16
|
- nuxt-and-vue
|
|
17
17
|
applicationTemplate: https://github.com/aymericzip/intlayer-nuxt-4-template
|
|
18
|
-
youtubeVideo: https://www.youtube.com/watch?v=
|
|
18
|
+
youtubeVideo: https://www.youtube.com/watch?v=nhUcUAVQ6eQ
|
|
19
19
|
history:
|
|
20
20
|
- version: 7.3.11
|
|
21
21
|
date: 2025-12-07
|
|
@@ -46,20 +46,10 @@ history:
|
|
|
46
46
|
|
|
47
47
|
## 在 Nuxt 应用中设置 Intlayer 的分步指南
|
|
48
48
|
|
|
49
|
-
<iframe
|
|
50
|
-
src="https://stackblitz.com/github/aymericzip/intlayer-nuxt-4-template?embed=1&ctl=1&file=intlayer.config.ts"
|
|
51
|
-
className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
|
|
52
|
-
title="演示 CodeSandbox - 如何使用 Intlayer 实现应用国际化"
|
|
53
|
-
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
|
|
54
|
-
loading="lazy"
|
|
55
|
-
/>
|
|
56
|
-
|
|
57
|
-
### 第一步:安装依赖
|
|
58
|
-
|
|
59
49
|
<Tab defaultTab="video">
|
|
60
50
|
<TabItem label="视频" value="video">
|
|
61
51
|
|
|
62
|
-
<iframe title="如何使用 Intlayer 翻译你的 Nuxt 和 Vue 应用?探索 Intlayer" class="m-auto aspect-[16/9] w-full overflow-hidden rounded-lg border-0" allow="autoplay; gyroscope;" loading="lazy" width="1080" height="auto" src="https://www.youtube.com/embed/
|
|
52
|
+
<iframe title="如何使用 Intlayer 翻译你的 Nuxt 和 Vue 应用?探索 Intlayer" class="m-auto aspect-[16/9] w-full overflow-hidden rounded-lg border-0" allow="autoplay; gyroscope;" loading="lazy" width="1080" height="auto" src="https://www.youtube.com/embed/nhUcUAVQ6eQ?autoplay=0&origin=http://intlayer.org&controls=0&rel=1"/>
|
|
63
53
|
|
|
64
54
|
</TabItem>
|
|
65
55
|
<TabItem label="代码" value="code">
|
|
@@ -75,6 +65,8 @@ history:
|
|
|
75
65
|
</TabItem>
|
|
76
66
|
</Tab>
|
|
77
67
|
|
|
68
|
+
### 第一步:安装依赖
|
|
69
|
+
|
|
78
70
|
查看 GitHub 上的[应用模板](https://github.com/aymericzip/intlayer-nuxt-4-template)。
|
|
79
71
|
|
|
80
72
|
使用 npm 安装必要的包:
|
|
@@ -654,26 +646,6 @@ module.exports = aboutPageContent;
|
|
|
654
646
|
}
|
|
655
647
|
```
|
|
656
648
|
|
|
657
|
-
### 配置 TypeScript
|
|
658
|
-
|
|
659
|
-
Intlayer 使用模块增强来利用 TypeScript 的优势,使您的代码库更强大。
|
|
660
|
-
|
|
661
|
-

|
|
662
|
-
|
|
663
|
-

|
|
664
|
-
|
|
665
|
-
确保您的 TypeScript 配置包含自动生成的类型。
|
|
666
|
-
|
|
667
|
-
```json5 fileName="tsconfig.json"
|
|
668
|
-
{
|
|
669
|
-
// ... 您现有的 TypeScript 配置
|
|
670
|
-
"include": [
|
|
671
|
-
// ... 您现有的 TypeScript 配置
|
|
672
|
-
".intlayer/**/*.ts", // 包含自动生成的类型
|
|
673
|
-
],
|
|
674
|
-
}
|
|
675
|
-
```
|
|
676
|
-
|
|
677
649
|
### Git 配置
|
|
678
650
|
|
|
679
651
|
建议忽略 Intlayer 生成的文件。这样可以避免将它们提交到您的 Git 仓库中。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/docs",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer documentation",
|
|
6
6
|
"keywords": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
],
|
|
50
50
|
"scripts": {
|
|
51
51
|
"_prepublish": "cp -f ../README.md ./README.md",
|
|
52
|
-
"prebuild": "
|
|
52
|
+
"prebuild": "bun tools/generateEntry.ts",
|
|
53
53
|
"build": "tsdown --config tsdown.config.ts",
|
|
54
54
|
"build:ci": "tsdown --config tsdown.config.ts",
|
|
55
55
|
"clean": "rimraf ./dist .turbo",
|
|
@@ -65,21 +65,21 @@
|
|
|
65
65
|
"review": "bun tools/review.ts",
|
|
66
66
|
"serve": "webpack serve --config ./webpack.config.ts",
|
|
67
67
|
"test": "vitest run",
|
|
68
|
-
"test:markdown": "
|
|
68
|
+
"test:markdown": "bun tools/markdownFormatting.ts",
|
|
69
69
|
"test:watch": "vitest",
|
|
70
|
-
"translate": "
|
|
70
|
+
"translate": "bun tools/translate.ts",
|
|
71
71
|
"transpile": "webpack --config ./webpack.config.ts",
|
|
72
72
|
"typecheck": "tsc --noEmit --project tsconfig.types.json",
|
|
73
73
|
"watch": "webpack --config ./webpack.config.ts --watch"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@intlayer/config": "7.3.
|
|
77
|
-
"@intlayer/core": "7.3.
|
|
78
|
-
"@intlayer/types": "7.3.
|
|
76
|
+
"@intlayer/config": "7.3.13",
|
|
77
|
+
"@intlayer/core": "7.3.13",
|
|
78
|
+
"@intlayer/types": "7.3.13"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@intlayer/api": "7.3.
|
|
82
|
-
"@intlayer/cli": "7.3.
|
|
81
|
+
"@intlayer/api": "7.3.13",
|
|
82
|
+
"@intlayer/cli": "7.3.13",
|
|
83
83
|
"@types/node": "24.10.1",
|
|
84
84
|
"@utils/ts-config": "1.0.4",
|
|
85
85
|
"@utils/ts-config-types": "1.0.4",
|
|
@@ -87,9 +87,8 @@
|
|
|
87
87
|
"fast-glob": "3.3.3",
|
|
88
88
|
"rimraf": "6.1.2",
|
|
89
89
|
"tsdown": "0.16.8",
|
|
90
|
-
"tsx": "^4.20.6",
|
|
91
90
|
"typescript": "5.9.3",
|
|
92
|
-
"vitest": "4.0.
|
|
91
|
+
"vitest": "4.0.15"
|
|
93
92
|
},
|
|
94
93
|
"engines": {
|
|
95
94
|
"node": ">=14.18"
|