@@ -176,41 +176,38 @@ This repository employs a [monorepo](https://en.wikipedia.org/wiki/Monorepo) set
176
176
177
177
``` mermaid
178
178
flowchart TD
179
- shared["@intlify/shared"]
180
- message-compiler["@intlify/message-compiler"]
181
- core-base["@intlify/core-base"]
182
- core["@intlify/core"]
183
- vue-i18n-core["@intlify/vue-i18n-core"]
184
- petite-vue-i18n["petite-vue-i18n"]
185
- vue-i18n["vue-i18n"]
179
+ message-compiler
180
+ core-base
181
+ core
182
+ vue-i18n-core
183
+ petite-vue-i18n
184
+ vue-i18n
186
185
187
186
subgraph Framework Agnostice Packages
188
- message-compiler --> shared
189
- core-base --> shared
190
187
core-base --> message-compiler
191
- core --> shared
192
188
core --> core-base
193
189
end
194
190
195
191
subgraph Vue Layer Packages
196
- vue-i18n-core --> shared
197
192
vue-i18n-core --> core-base
198
- vue-i18n --> shared
199
193
vue-i18n --> core-base
200
194
vue-i18n --> vue-i18n-core
201
- petite-vue-i18n --> shared
202
195
petite-vue-i18n --> core-base
203
196
petite-vue-i18n --> vue-i18n-core
204
197
end
205
198
```
206
199
207
- - ` shared ` : Internal utilities shared across multiple packages.
208
200
- ` message-compiler ` : The intlify message format compiler.
209
- - ` core-base ` : The inlitfy core base .
201
+ - ` core-base ` : The inlitfy core logic implementation .
210
202
- ` core ` : The intlify core "full build" which includes both the runtime AND the compiler.
211
- - ` vue-i18n-core ` : The vue-i18n core implementation package.
212
- - ` vue-i18n ` : The vue-i18n "full build" which includes both the runtime AND the compiler.
203
+ - ` vue-i18n-core ` : The vue-i18n core implementation.
213
204
- ` petite-vue-i18n ` : The vue-i18n "small build" which includes both the runtime AND the compiler.
205
+ - ` vue-i18n ` : The vue-i18n "full build" which includes both the runtime AND the compiler.
206
+
207
+ There are some caveats to these packages:
208
+
209
+ - The modules ` vue-i18n ` and ` vue-i18n-core ` , the core logic of ` petite-vue-i18n ` , should be imported with relative paths.
210
+ - Similarly for ` core ` , modules of ` core-base ` , which is the core logic implemented, should be imported with relative paths.
214
211
215
212
### Importing Packages
216
213
@@ -223,7 +220,6 @@ import { baseCompile } from '@intlify/compiler'
223
220
This is made possible via several configurations:
224
221
225
222
- For TypeScript, ` compilerOptions.path ` in ` tsconfig.json `
226
- - For Jest, ` moduleNameMapper ` in ` jest.config.js `
227
223
- For plain Node.js, they are linked using [ PNPM Workspaces] ( https://pnpm.io/workspaces ) .
228
224
229
225
## Contributing Tests
0 commit comments