@intlayer/docs 8.2.3 → 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.
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/blog.cjs.map +1 -1
- package/dist/cjs/common.cjs +1 -1
- package/dist/cjs/common.cjs.map +1 -1
- package/dist/cjs/doc.cjs.map +1 -1
- package/dist/cjs/frequentQuestions.cjs.map +1 -1
- package/dist/cjs/generated/blog.entry.cjs +1 -1
- package/dist/cjs/generated/blog.entry.cjs.map +1 -1
- package/dist/cjs/generated/docs.entry.cjs +1 -1
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/cjs/generated/frequentQuestions.entry.cjs +1 -1
- package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
- package/dist/cjs/generated/legal.entry.cjs +1 -1
- package/dist/cjs/generated/legal.entry.cjs.map +1 -1
- package/dist/cjs/legal.cjs.map +1 -1
- package/dist/esm/blog.mjs.map +1 -1
- package/dist/esm/common.mjs +1 -1
- package/dist/esm/common.mjs.map +1 -1
- package/dist/esm/doc.mjs.map +1 -1
- package/dist/esm/frequentQuestions.mjs.map +1 -1
- package/dist/esm/generated/blog.entry.mjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/esm/generated/frequentQuestions.entry.mjs.map +1 -1
- package/dist/esm/generated/legal.entry.mjs.map +1 -1
- package/dist/esm/legal.mjs.map +1 -1
- package/dist/types/blog.d.ts +1 -1
- package/dist/types/common.d.ts +1 -1
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/doc.d.ts +1 -1
- package/dist/types/frequentQuestions.d.ts +1 -1
- package/dist/types/generated/blog.entry.d.ts +1 -1
- package/dist/types/generated/docs.entry.d.ts +1 -1
- package/dist/types/generated/frequentQuestions.entry.d.ts +1 -1
- package/dist/types/generated/legal.entry.d.ts +1 -1
- package/dist/types/legal.d.ts +1 -1
- package/docs/ar/compiler.md +73 -8
- package/docs/ar/configuration.md +53 -17
- package/docs/ar/intlayer_with_nextjs_compiler.md +13 -5
- package/docs/ar/intlayer_with_vite+react_compiler.md +13 -5
- package/docs/ar/per_locale_file.md +1 -1
- package/docs/de/compiler.md +74 -9
- package/docs/de/configuration.md +49 -13
- package/docs/de/intlayer_with_nextjs_compiler.md +12 -4
- package/docs/de/intlayer_with_vite+react_compiler.md +12 -4
- package/docs/de/per_locale_file.md +1 -1
- package/docs/en/compiler.md +79 -1
- package/docs/en/configuration.md +39 -1
- package/docs/en/intlayer_with_nextjs_compiler.md +9 -1
- package/docs/en/intlayer_with_vite+react_compiler.md +9 -1
- package/docs/en/per_locale_file.md +1 -1
- package/docs/en-GB/compiler.md +72 -6
- package/docs/en-GB/configuration.md +39 -2
- package/docs/en-GB/intlayer_with_nextjs_compiler.md +22 -3
- package/docs/en-GB/intlayer_with_vite+react_compiler.md +22 -3
- package/docs/en-GB/per_locale_file.md +1 -1
- package/docs/es/compiler.md +71 -6
- package/docs/es/configuration.md +52 -16
- package/docs/es/intlayer_with_nextjs_compiler.md +9 -1
- package/docs/es/intlayer_with_vite+react_compiler.md +9 -1
- package/docs/fr/compiler.md +69 -4
- package/docs/fr/configuration.md +50 -14
- package/docs/fr/intlayer_with_nextjs_compiler.md +9 -1
- package/docs/fr/intlayer_with_vite+react_compiler.md +9 -1
- package/docs/hi/compiler.md +74 -9
- package/docs/hi/configuration.md +49 -13
- package/docs/hi/intlayer_with_nextjs_compiler.md +15 -7
- package/docs/hi/intlayer_with_vite+react_compiler.md +15 -7
- package/docs/hi/per_locale_file.md +1 -1
- package/docs/id/compiler.md +73 -8
- package/docs/id/configuration.md +46 -10
- package/docs/id/intlayer_with_nextjs_compiler.md +13 -5
- package/docs/id/intlayer_with_vite+react_compiler.md +13 -5
- package/docs/id/per_locale_file.md +1 -1
- package/docs/it/compiler.md +73 -8
- package/docs/it/configuration.md +54 -18
- package/docs/it/intlayer_with_nextjs_compiler.md +12 -4
- package/docs/it/intlayer_with_vite+react_compiler.md +12 -4
- package/docs/it/per_locale_file.md +1 -1
- package/docs/ja/compiler.md +75 -10
- package/docs/ja/configuration.md +50 -14
- package/docs/ja/intlayer_with_nextjs_compiler.md +13 -5
- package/docs/ja/intlayer_with_vite+react_compiler.md +13 -5
- package/docs/ko/compiler.md +75 -10
- package/docs/ko/configuration.md +50 -14
- package/docs/ko/intlayer_with_nextjs_compiler.md +22 -3
- package/docs/ko/intlayer_with_vite+react_compiler.md +22 -3
- package/docs/pl/compiler.md +73 -8
- package/docs/pl/configuration.md +47 -11
- package/docs/pl/intlayer_with_nextjs_compiler.md +13 -5
- package/docs/pl/intlayer_with_vite+react_compiler.md +13 -5
- package/docs/pl/per_locale_file.md +1 -1
- package/docs/pt/compiler.md +74 -9
- package/docs/pt/configuration.md +50 -14
- package/docs/pt/intlayer_with_nextjs_compiler.md +12 -4
- package/docs/pt/intlayer_with_vite+react_compiler.md +12 -4
- package/docs/pt/per_locale_file.md +1 -1
- package/docs/ru/compiler.md +74 -9
- package/docs/ru/configuration.md +49 -13
- package/docs/ru/intlayer_with_nextjs_compiler.md +11 -3
- package/docs/ru/intlayer_with_vite+react_compiler.md +11 -3
- package/docs/tr/compiler.md +73 -8
- package/docs/tr/configuration.md +53 -17
- package/docs/tr/intlayer_with_nextjs_compiler.md +11 -3
- package/docs/tr/intlayer_with_vite+react_compiler.md +11 -3
- package/docs/tr/per_locale_file.md +1 -1
- package/docs/uk/compiler.md +74 -9
- package/docs/uk/configuration.md +183 -147
- package/docs/uk/intlayer_with_nextjs_compiler.md +13 -5
- package/docs/uk/intlayer_with_vite+react_compiler.md +13 -5
- package/docs/vi/compiler.md +75 -10
- package/docs/vi/configuration.md +47 -11
- package/docs/vi/intlayer_with_nextjs_compiler.md +14 -6
- package/docs/vi/intlayer_with_vite+react_compiler.md +14 -6
- package/docs/vi/per_locale_file.md +1 -1
- package/docs/zh/compiler.md +75 -10
- package/docs/zh/configuration.md +54 -18
- package/docs/zh/intlayer_with_nextjs_compiler.md +13 -5
- package/docs/zh/intlayer_with_vite+react_compiler.md +13 -5
- package/package.json +16 -16
- package/src/blog.ts +1 -1
- package/src/common.ts +2 -1
- package/src/doc.ts +1 -1
- package/src/frequentQuestions.ts +1 -1
- package/src/generated/blog.entry.ts +1 -1
- package/src/generated/docs.entry.ts +1 -1
- package/src/generated/frequentQuestions.entry.ts +1 -1
- package/src/generated/legal.entry.ts +1 -1
- 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
|
-
|
|
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.
|
|
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.
|
|
76
|
-
"@intlayer/core": "8.
|
|
77
|
-
"@intlayer/types": "8.
|
|
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.
|
|
81
|
-
"@intlayer/cli": "8.
|
|
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.
|
|
88
|
+
"tsdown": "0.21.1",
|
|
89
89
|
"typescript": "5.9.3",
|
|
90
90
|
"vitest": "4.0.18"
|
|
91
91
|
},
|
package/src/blog.ts
CHANGED
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 {
|
|
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
package/src/frequentQuestions.ts
CHANGED
|
@@ -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