@i18n-micro/types 1.2.15 → 1.2.16
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/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -258,6 +258,17 @@ export interface ModuleOptions {
|
|
|
258
258
|
* @default 'locales'
|
|
259
259
|
*/
|
|
260
260
|
translationDir?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Extra directories (relative to the project root / each Nuxt layer root) whose top-level
|
|
263
|
+
* `{locale}.json` files are deep-merged into the global dictionary before `translationDir`.
|
|
264
|
+
*
|
|
265
|
+
* Merge order: each entry in array order (across layers), then `translationDir` (wins on conflicts).
|
|
266
|
+
* Only root `{locale}.json` files are read — `pages/` under these dirs is ignored.
|
|
267
|
+
*
|
|
268
|
+
* Example: `translationDir: 'frontend'`, `additionalTranslationDirs: ['common']` → `common/en.json` then `frontend/en.json`.
|
|
269
|
+
* @default []
|
|
270
|
+
*/
|
|
271
|
+
additionalTranslationDirs?: string[];
|
|
261
272
|
/**
|
|
262
273
|
* Controls how translation payloads are emitted (Node: `public/<apiBaseUrl>`; Edge: Nitro `serverAssets`).
|
|
263
274
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -258,6 +258,17 @@ export interface ModuleOptions {
|
|
|
258
258
|
* @default 'locales'
|
|
259
259
|
*/
|
|
260
260
|
translationDir?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Extra directories (relative to the project root / each Nuxt layer root) whose top-level
|
|
263
|
+
* `{locale}.json` files are deep-merged into the global dictionary before `translationDir`.
|
|
264
|
+
*
|
|
265
|
+
* Merge order: each entry in array order (across layers), then `translationDir` (wins on conflicts).
|
|
266
|
+
* Only root `{locale}.json` files are read — `pages/` under these dirs is ignored.
|
|
267
|
+
*
|
|
268
|
+
* Example: `translationDir: 'frontend'`, `additionalTranslationDirs: ['common']` → `common/en.json` then `frontend/en.json`.
|
|
269
|
+
* @default []
|
|
270
|
+
*/
|
|
271
|
+
additionalTranslationDirs?: string[];
|
|
261
272
|
/**
|
|
262
273
|
* Controls how translation payloads are emitted (Node: `public/<apiBaseUrl>`; Edge: Nitro `serverAssets`).
|
|
263
274
|
*
|