@intlayer/docs 8.2.4 → 8.3.0-canary.0

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.
Files changed (117) hide show
  1. package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -0
  2. package/dist/cjs/blog.cjs.map +1 -1
  3. package/dist/cjs/common.cjs +1 -1
  4. package/dist/cjs/common.cjs.map +1 -1
  5. package/dist/cjs/doc.cjs.map +1 -1
  6. package/dist/cjs/frequentQuestions.cjs.map +1 -1
  7. package/dist/cjs/generated/blog.entry.cjs +1 -1
  8. package/dist/cjs/generated/blog.entry.cjs.map +1 -1
  9. package/dist/cjs/generated/docs.entry.cjs +1 -1
  10. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  11. package/dist/cjs/generated/frequentQuestions.entry.cjs +1 -1
  12. package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
  13. package/dist/cjs/generated/legal.entry.cjs +1 -1
  14. package/dist/cjs/generated/legal.entry.cjs.map +1 -1
  15. package/dist/cjs/legal.cjs.map +1 -1
  16. package/dist/esm/blog.mjs.map +1 -1
  17. package/dist/esm/common.mjs +1 -1
  18. package/dist/esm/common.mjs.map +1 -1
  19. package/dist/esm/doc.mjs.map +1 -1
  20. package/dist/esm/frequentQuestions.mjs.map +1 -1
  21. package/dist/esm/generated/blog.entry.mjs.map +1 -1
  22. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  23. package/dist/esm/generated/frequentQuestions.entry.mjs.map +1 -1
  24. package/dist/esm/generated/legal.entry.mjs.map +1 -1
  25. package/dist/esm/legal.mjs.map +1 -1
  26. package/dist/types/blog.d.ts +1 -1
  27. package/dist/types/common.d.ts +1 -1
  28. package/dist/types/common.d.ts.map +1 -1
  29. package/dist/types/doc.d.ts +1 -1
  30. package/dist/types/frequentQuestions.d.ts +1 -1
  31. package/dist/types/generated/blog.entry.d.ts +1 -1
  32. package/dist/types/generated/docs.entry.d.ts +1 -1
  33. package/dist/types/generated/frequentQuestions.entry.d.ts +1 -1
  34. package/dist/types/generated/legal.entry.d.ts +1 -1
  35. package/dist/types/legal.d.ts +1 -1
  36. package/docs/ar/compiler.md +73 -8
  37. package/docs/ar/configuration.md +53 -17
  38. package/docs/ar/intlayer_with_nextjs_compiler.md +13 -5
  39. package/docs/ar/intlayer_with_vite+react_compiler.md +13 -5
  40. package/docs/de/compiler.md +74 -9
  41. package/docs/de/configuration.md +49 -13
  42. package/docs/de/intlayer_with_nextjs_compiler.md +12 -4
  43. package/docs/de/intlayer_with_vite+react_compiler.md +12 -4
  44. package/docs/en/compiler.md +79 -1
  45. package/docs/en/configuration.md +39 -1
  46. package/docs/en/intlayer_with_nextjs_compiler.md +9 -1
  47. package/docs/en/intlayer_with_vite+react_compiler.md +9 -1
  48. package/docs/en-GB/compiler.md +72 -6
  49. package/docs/en-GB/configuration.md +39 -2
  50. package/docs/en-GB/intlayer_with_nextjs_compiler.md +22 -3
  51. package/docs/en-GB/intlayer_with_vite+react_compiler.md +22 -3
  52. package/docs/es/compiler.md +71 -6
  53. package/docs/es/configuration.md +52 -16
  54. package/docs/es/intlayer_with_nextjs_compiler.md +9 -1
  55. package/docs/es/intlayer_with_vite+react_compiler.md +9 -1
  56. package/docs/fr/compiler.md +69 -4
  57. package/docs/fr/configuration.md +50 -14
  58. package/docs/fr/intlayer_with_nextjs_compiler.md +9 -1
  59. package/docs/fr/intlayer_with_vite+react_compiler.md +9 -1
  60. package/docs/hi/compiler.md +74 -9
  61. package/docs/hi/configuration.md +49 -13
  62. package/docs/hi/intlayer_with_nextjs_compiler.md +15 -7
  63. package/docs/hi/intlayer_with_vite+react_compiler.md +15 -7
  64. package/docs/id/compiler.md +73 -8
  65. package/docs/id/configuration.md +46 -10
  66. package/docs/id/intlayer_with_nextjs_compiler.md +13 -5
  67. package/docs/id/intlayer_with_vite+react_compiler.md +13 -5
  68. package/docs/it/compiler.md +73 -8
  69. package/docs/it/configuration.md +54 -18
  70. package/docs/it/intlayer_with_nextjs_compiler.md +12 -4
  71. package/docs/it/intlayer_with_vite+react_compiler.md +12 -4
  72. package/docs/ja/compiler.md +75 -10
  73. package/docs/ja/configuration.md +50 -14
  74. package/docs/ja/intlayer_with_nextjs_compiler.md +13 -5
  75. package/docs/ja/intlayer_with_vite+react_compiler.md +13 -5
  76. package/docs/ko/compiler.md +75 -10
  77. package/docs/ko/configuration.md +50 -14
  78. package/docs/ko/intlayer_with_nextjs_compiler.md +22 -3
  79. package/docs/ko/intlayer_with_vite+react_compiler.md +22 -3
  80. package/docs/pl/compiler.md +73 -8
  81. package/docs/pl/configuration.md +47 -11
  82. package/docs/pl/intlayer_with_nextjs_compiler.md +13 -5
  83. package/docs/pl/intlayer_with_vite+react_compiler.md +13 -5
  84. package/docs/pt/compiler.md +74 -9
  85. package/docs/pt/configuration.md +50 -14
  86. package/docs/pt/intlayer_with_nextjs_compiler.md +12 -4
  87. package/docs/pt/intlayer_with_vite+react_compiler.md +12 -4
  88. package/docs/ru/compiler.md +74 -9
  89. package/docs/ru/configuration.md +49 -13
  90. package/docs/ru/intlayer_with_nextjs_compiler.md +11 -3
  91. package/docs/ru/intlayer_with_vite+react_compiler.md +11 -3
  92. package/docs/tr/compiler.md +73 -8
  93. package/docs/tr/configuration.md +53 -17
  94. package/docs/tr/intlayer_with_nextjs_compiler.md +11 -3
  95. package/docs/tr/intlayer_with_vite+react_compiler.md +11 -3
  96. package/docs/uk/compiler.md +74 -9
  97. package/docs/uk/configuration.md +183 -147
  98. package/docs/uk/intlayer_with_nextjs_compiler.md +13 -5
  99. package/docs/uk/intlayer_with_vite+react_compiler.md +13 -5
  100. package/docs/vi/compiler.md +75 -10
  101. package/docs/vi/configuration.md +47 -11
  102. package/docs/vi/intlayer_with_nextjs_compiler.md +14 -6
  103. package/docs/vi/intlayer_with_vite+react_compiler.md +14 -6
  104. package/docs/zh/compiler.md +75 -10
  105. package/docs/zh/configuration.md +54 -18
  106. package/docs/zh/intlayer_with_nextjs_compiler.md +13 -5
  107. package/docs/zh/intlayer_with_vite+react_compiler.md +13 -5
  108. package/package.json +16 -16
  109. package/src/blog.ts +1 -1
  110. package/src/common.ts +2 -1
  111. package/src/doc.ts +1 -1
  112. package/src/frequentQuestions.ts +1 -1
  113. package/src/generated/blog.entry.ts +1 -1
  114. package/src/generated/docs.entry.ts +1 -1
  115. package/src/generated/frequentQuestions.entry.ts +1 -1
  116. package/src/generated/legal.entry.ts +1 -1
  117. package/src/legal.ts +1 -1
@@ -19,6 +19,9 @@ slugs:
19
19
  applicationTemplate: https://github.com/aymericzip/intlayer-vite-react-template
20
20
  youtubeVideo: https://www.youtube.com/watch?v=dS9L7uJeak4
21
21
  history:
22
+ - version: 8.2.0
23
+ date: 2026-03-09
24
+ changes: Update compiler options, add FilePathPattern support
22
25
  - version: 8.1.6
23
26
  date: 2026-02-23
24
27
  changes: 首次发布
@@ -130,23 +133,28 @@ const config: IntlayerConfig = {
130
133
  },
131
134
  compiler: {
132
135
  /**
133
- * 指示是否启用编译器。
136
+ * 指示是否应启用编译器。
134
137
  */
135
138
  enabled: true,
136
139
 
137
140
  /**
138
- * 优化后字典的输出目录。
141
+ * 优化字典的输出目录。
139
142
  */
140
- outputDir: "compiler",
143
+ output: ({ locale, key }) => `compiler/${locale}/${key}.json`,
144
+
145
+ /**
146
+ * 仅在生成的文件中插入内容,不含键。
147
+ */
148
+ noMetadata: false,
141
149
 
142
150
  /**
143
151
  * 字典键前缀
144
152
  */
145
- dictionaryKeyPrefix: "", // 移除基础前缀
153
+ dictionaryKeyPrefix: "", // Remove base prefix
146
154
 
147
155
  /**
148
156
  * 指示转换后是否应保存组件。
149
- * 这样,编译器只需运行一次即可转换应用程序,然后即可将其移除。
157
+ * 这样,编译器只需运行一次即可转换应用程序,然后即可将其删除。
150
158
  */
151
159
  saveComponents: false,
152
160
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/docs",
3
- "version": "8.2.4",
3
+ "version": "8.3.0-canary.0",
4
4
  "private": false,
5
5
  "description": "Intlayer documentation",
6
6
  "keywords": [
@@ -49,43 +49,43 @@
49
49
  ],
50
50
  "scripts": {
51
51
  "prebuild": "bun tools/generateEntry.ts",
52
- "build": "tsdown --config tsdown.config.ts",
53
- "build:ci": "tsdown --config tsdown.config.ts",
54
- "clean": "rimraf ./dist .turbo",
52
+ "build": "bun --bun tsdown --config tsdown.config.ts",
53
+ "build:ci": "bun --bun tsdown --config tsdown.config.ts",
54
+ "clean": "bun --bun rimraf ./dist .turbo",
55
55
  "dev": "tsdown --config tsdown.config.ts --watch",
56
- "format": "biome format . --check",
57
- "format:fix": "biome format --write .",
58
- "lint": "biome lint .",
59
- "lint:fix": "biome lint --write .",
56
+ "format": "bun --bun biome format . --check",
57
+ "format:fix": "bun --bun biome format --write .",
58
+ "lint": "bun --bun biome lint .",
59
+ "lint:fix": "bun --bun biome lint --write .",
60
60
  "prepublish": "cp -f ../README.md ./README.md",
61
61
  "publish": "bun publish || true",
62
62
  "publish:canary": "bun publish --access public --tag canary || true",
63
63
  "publish:latest": "bun publish --access public --tag latest || true",
64
64
  "review": "bun tools/review.ts",
65
65
  "serve": "webpack serve --config ./webpack.config.ts",
66
- "test": "vitest run",
66
+ "test": "bun --bun vitest run",
67
67
  "test:markdown": "bun tools/markdownFormatting.ts",
68
- "test:watch": "vitest",
68
+ "test:watch": "bun --bun vitest",
69
69
  "translate": "bun tools/translate.ts",
70
70
  "transpile": "webpack --config ./webpack.config.ts",
71
71
  "typecheck": "tsc --noEmit --project tsconfig.types.json",
72
72
  "watch": "webpack --config ./webpack.config.ts --watch"
73
73
  },
74
74
  "dependencies": {
75
- "@intlayer/config": "8.2.3",
76
- "@intlayer/core": "8.2.3",
77
- "@intlayer/types": "8.2.3"
75
+ "@intlayer/config": "8.3.0-canary.0",
76
+ "@intlayer/core": "8.3.0-canary.0",
77
+ "@intlayer/types": "8.3.0-canary.0"
78
78
  },
79
79
  "devDependencies": {
80
- "@intlayer/api": "8.2.3",
81
- "@intlayer/cli": "8.2.3",
80
+ "@intlayer/api": "8.3.0-canary.0",
81
+ "@intlayer/cli": "8.3.0-canary.0",
82
82
  "@types/node": "25.3.5",
83
83
  "@utils/ts-config": "1.0.4",
84
84
  "@utils/ts-config-types": "1.0.4",
85
85
  "@utils/tsdown-config": "1.0.4",
86
86
  "fast-glob": "3.3.3",
87
87
  "rimraf": "6.1.3",
88
- "tsdown": "0.21.0",
88
+ "tsdown": "0.21.1",
89
89
  "typescript": "5.9.3",
90
90
  "vitest": "4.0.18"
91
91
  },
package/src/blog.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { DeclaredLocales, LocalesValues } from '@intlayer/types';
1
+ import type { DeclaredLocales, LocalesValues } from '@intlayer/types/module_augmentation';
2
2
  import {
3
3
  defaultLocale,
4
4
  type FileMetadata,
package/src/common.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { join } from 'node:path';
2
2
  import { getLocalizedUrl } from '@intlayer/core/localization';
3
3
  import { getMarkdownMetadata } from '@intlayer/core/transpiler';
4
- import { Locales, type LocalesValues } from '@intlayer/types';
4
+ import type { LocalesValues } from '@intlayer/types/module_augmentation';
5
+ import * as Locales from '@intlayer/types/locales';
5
6
 
6
7
  export const defaultLocale = Locales.ENGLISH;
7
8
 
package/src/doc.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { DeclaredLocales, LocalesValues } from '@intlayer/types';
1
+ import type { DeclaredLocales, LocalesValues } from '@intlayer/types/module_augmentation';
2
2
  import {
3
3
  defaultLocale,
4
4
  type FileMetadata,
@@ -1,4 +1,4 @@
1
- import type { DeclaredLocales, LocalesValues } from '@intlayer/types';
1
+ import type { DeclaredLocales, LocalesValues } from '@intlayer/types/module_augmentation';
2
2
  import {
3
3
  defaultLocale,
4
4
  type FileMetadata,
@@ -5,7 +5,7 @@ import { readFile } from 'node:fs/promises';
5
5
  import { join, dirname as pathDirname } from 'node:path';
6
6
  import { fileURLToPath } from 'node:url';
7
7
  import { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';
8
- import type { LocalesValues } from '@intlayer/types';
8
+ import type { LocalesValues } from '@intlayer/types/module_augmentation';
9
9
 
10
10
  // Robustly resolve the base directory of the @intlayer/docs package in both
11
11
  // bundled environments (Next.js) and standalone CLIs (MCP via npx).
@@ -5,7 +5,7 @@ import { readFile } from 'node:fs/promises';
5
5
  import { join, dirname as pathDirname } from 'node:path';
6
6
  import { fileURLToPath } from 'node:url';
7
7
  import { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';
8
- import type { LocalesValues } from '@intlayer/types';
8
+ import type { LocalesValues } from '@intlayer/types/module_augmentation';
9
9
 
10
10
  // Robustly resolve the base directory of the @intlayer/docs package in both
11
11
  // bundled environments (Next.js) and standalone CLIs (MCP via npx).
@@ -5,7 +5,7 @@ import { readFile } from 'node:fs/promises';
5
5
  import { join, dirname as pathDirname } from 'node:path';
6
6
  import { fileURLToPath } from 'node:url';
7
7
  import { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';
8
- import type { LocalesValues } from '@intlayer/types';
8
+ import type { LocalesValues } from '@intlayer/types/module_augmentation';
9
9
 
10
10
  // Robustly resolve the base directory of the @intlayer/docs package in both
11
11
  // bundled environments (Next.js) and standalone CLIs (MCP via npx).
@@ -5,7 +5,7 @@ import { readFile } from 'node:fs/promises';
5
5
  import { join, dirname as pathDirname } from 'node:path';
6
6
  import { fileURLToPath } from 'node:url';
7
7
  import { getPackageJsonPath, getProjectRequire } from '@intlayer/config/utils';
8
- import type { LocalesValues } from '@intlayer/types';
8
+ import type { LocalesValues } from '@intlayer/types/module_augmentation';
9
9
 
10
10
  // Robustly resolve the base directory of the @intlayer/docs package in both
11
11
  // bundled environments (Next.js) and standalone CLIs (MCP via npx).
package/src/legal.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { DeclaredLocales, LocalesValues } from '@intlayer/types';
1
+ import type { DeclaredLocales, LocalesValues } from '@intlayer/types/module_augmentation';
2
2
  import {
3
3
  defaultLocale,
4
4
  type FileMetadata,