@i18n-micro/types 1.1.4 → 1.1.6
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.ts +8 -3
- package/package.json +1 -1
- package/src/index.ts +9 -3
package/dist/index.d.ts
CHANGED
|
@@ -171,6 +171,13 @@ export interface ModuleOptions {
|
|
|
171
171
|
* @default true
|
|
172
172
|
*/
|
|
173
173
|
hooks?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Register built-in i18n components (`<i18n-link>`, `<i18n-switcher>`, `<i18n-t>`, `<i18n-group>`).
|
|
176
|
+
* Set to `false` to disable automatic component registration (e.g. if you don't use them
|
|
177
|
+
* and want to reduce the module footprint).
|
|
178
|
+
* @default true
|
|
179
|
+
*/
|
|
180
|
+
components?: boolean;
|
|
174
181
|
/**
|
|
175
182
|
* The locale to use when no locale can be determined from URL or user preferences.
|
|
176
183
|
* Also used as the fallback locale for missing translations when `fallbackLocale` is not set.
|
|
@@ -340,7 +347,7 @@ export interface ModuleOptions {
|
|
|
340
347
|
*/
|
|
341
348
|
cacheMaxSize?: number;
|
|
342
349
|
/**
|
|
343
|
-
* Time-to-live (in
|
|
350
|
+
* Time-to-live (in seconds) for cached translation entries.
|
|
344
351
|
* `0` means entries never expire.
|
|
345
352
|
* @default 0
|
|
346
353
|
*/
|
|
@@ -376,8 +383,6 @@ export interface ModuleOptionsExtend extends ModuleOptions {
|
|
|
376
383
|
export interface ModulePrivateOptionsExtend extends ModuleOptions {
|
|
377
384
|
/** Absolute path to the Nuxt project root directory. */
|
|
378
385
|
rootDir: string;
|
|
379
|
-
/** List of all root directories (includes layer roots in a multi-layer setup). */
|
|
380
|
-
rootDirs: string[];
|
|
381
386
|
/** Resolved debug flag. */
|
|
382
387
|
debug: boolean;
|
|
383
388
|
/** Resolved path to the translations directory. */
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -195,6 +195,14 @@ export interface ModuleOptions {
|
|
|
195
195
|
*/
|
|
196
196
|
hooks?: boolean
|
|
197
197
|
|
|
198
|
+
/**
|
|
199
|
+
* Register built-in i18n components (`<i18n-link>`, `<i18n-switcher>`, `<i18n-t>`, `<i18n-group>`).
|
|
200
|
+
* Set to `false` to disable automatic component registration (e.g. if you don't use them
|
|
201
|
+
* and want to reduce the module footprint).
|
|
202
|
+
* @default true
|
|
203
|
+
*/
|
|
204
|
+
components?: boolean
|
|
205
|
+
|
|
198
206
|
/**
|
|
199
207
|
* The locale to use when no locale can be determined from URL or user preferences.
|
|
200
208
|
* Also used as the fallback locale for missing translations when `fallbackLocale` is not set.
|
|
@@ -388,7 +396,7 @@ export interface ModuleOptions {
|
|
|
388
396
|
cacheMaxSize?: number
|
|
389
397
|
|
|
390
398
|
/**
|
|
391
|
-
* Time-to-live (in
|
|
399
|
+
* Time-to-live (in seconds) for cached translation entries.
|
|
392
400
|
* `0` means entries never expire.
|
|
393
401
|
* @default 0
|
|
394
402
|
*/
|
|
@@ -427,8 +435,6 @@ export interface ModuleOptionsExtend extends ModuleOptions {
|
|
|
427
435
|
export interface ModulePrivateOptionsExtend extends ModuleOptions {
|
|
428
436
|
/** Absolute path to the Nuxt project root directory. */
|
|
429
437
|
rootDir: string
|
|
430
|
-
/** List of all root directories (includes layer roots in a multi-layer setup). */
|
|
431
|
-
rootDirs: string[]
|
|
432
438
|
/** Resolved debug flag. */
|
|
433
439
|
debug: boolean
|
|
434
440
|
/** Resolved path to the translations directory. */
|