@i18n-micro/types 1.1.5 → 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 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 milliseconds) for cached translation entries.
350
+ * Time-to-live (in seconds) for cached translation entries.
344
351
  * `0` means entries never expire.
345
352
  * @default 0
346
353
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-micro/types",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "repository": "s00d/nuxt-i18n-micro",
6
6
  "license": "MIT",
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 milliseconds) for cached translation entries.
399
+ * Time-to-live (in seconds) for cached translation entries.
392
400
  * `0` means entries never expire.
393
401
  * @default 0
394
402
  */