@i18n-micro/types 1.2.14 → 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 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
  *
@@ -377,6 +388,13 @@ export interface ModuleOptions {
377
388
  * @default ['page', 'sort', 'filter', 'search', 'q', 'query', 'tag']
378
389
  */
379
390
  canonicalQueryWhitelist?: string[];
391
+ /**
392
+ * Trailing slash for `$localePath` / `$switchLocalePath` (NuxtLink parity).
393
+ * Defaults to `experimental.defaults.nuxtLink.trailingSlash` when unset.
394
+ * Set explicitly to override Nuxt's link default for i18n path helpers.
395
+ * @default undefined (inherit from Nuxt)
396
+ */
397
+ trailingSlash?: 'append' | 'remove';
380
398
  /**
381
399
  * URL patterns (strings or RegExp) to exclude from i18n processing entirely.
382
400
  * Matching routes won't get locale prefixes, redirects, or translation loading.
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
  *
@@ -377,6 +388,13 @@ export interface ModuleOptions {
377
388
  * @default ['page', 'sort', 'filter', 'search', 'q', 'query', 'tag']
378
389
  */
379
390
  canonicalQueryWhitelist?: string[];
391
+ /**
392
+ * Trailing slash for `$localePath` / `$switchLocalePath` (NuxtLink parity).
393
+ * Defaults to `experimental.defaults.nuxtLink.trailingSlash` when unset.
394
+ * Set explicitly to override Nuxt's link default for i18n path helpers.
395
+ * @default undefined (inherit from Nuxt)
396
+ */
397
+ trailingSlash?: 'append' | 'remove';
380
398
  /**
381
399
  * URL patterns (strings or RegExp) to exclude from i18n processing entirely.
382
400
  * Matching routes won't get locale prefixes, redirects, or translation loading.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-micro/types",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "TypeScript definitions for the Nuxt I18n Micro ecosystem.",
5
5
  "keywords": [
6
6
  "i18n",