🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@i18n-micro/types

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@i18n-micro/types - npm Package Compare versions

Comparing version
1.2.3
to
1.2.4
+7
-0
dist/index.d.cts

@@ -217,2 +217,7 @@ /** BCP-47 locale code string (e.g. `'en'`, `'de-DE'`, `'zh-Hans'`). */

/**
* Preload index-page translations in Nitro global middleware (server-only, private config).
* @default false
*/
serverTranslationPreload?: boolean;
/**
* The locale to use when no locale can be determined from URL or user preferences.

@@ -513,2 +518,4 @@ * Also used as the fallback locale for missing translations when `fallbackLocale` is not set.

};
/** Preload index translations in Nitro global middleware. */
serverTranslationPreload?: boolean;
}

@@ -515,0 +522,0 @@ /** Object shape for a translation value that contains singular/plural forms. */

@@ -217,2 +217,7 @@ /** BCP-47 locale code string (e.g. `'en'`, `'de-DE'`, `'zh-Hans'`). */

/**
* Preload index-page translations in Nitro global middleware (server-only, private config).
* @default false
*/
serverTranslationPreload?: boolean;
/**
* The locale to use when no locale can be determined from URL or user preferences.

@@ -513,2 +518,4 @@ * Also used as the fallback locale for missing translations when `fallbackLocale` is not set.

};
/** Preload index translations in Nitro global middleware. */
serverTranslationPreload?: boolean;
}

@@ -515,0 +522,0 @@ /** Object shape for a translation value that contains singular/plural forms. */

+24
-24
{
"name": "@i18n-micro/types",
"version": "1.2.3",
"version": "1.2.4",
"description": "TypeScript definitions for the Nuxt I18n Micro ecosystem.",
"repository": {
"type": "git",
"url": "git+https://github.com/s00d/nuxt-i18n-micro.git",
"directory": "packages/types"
"keywords": [
"i18n",
"nuxt",
"types",
"typescript"
],
"homepage": "https://github.com/s00d/nuxt-i18n-micro/tree/main/packages/types#readme",
"bugs": {
"url": "https://github.com/s00d/nuxt-i18n-micro/issues"
},
"license": "MIT",
"type": "module",
"sideEffects": false,
"author": {

@@ -18,9 +21,14 @@ "name": "s00d",

},
"homepage": "https://github.com/s00d/nuxt-i18n-micro/tree/main/packages/types#readme",
"bugs": {
"url": "https://github.com/s00d/nuxt-i18n-micro/issues"
"repository": {
"type": "git",
"url": "git+https://github.com/s00d/nuxt-i18n-micro.git",
"directory": "packages/types"
},
"engines": {
"node": ">=18"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"type": "module",
"sideEffects": false,
"main": "dist/index.cjs",

@@ -42,16 +50,5 @@ "types": "dist/index.d.ts",

},
"files": [
"dist",
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"keywords": [
"nuxt",
"i18n",
"typescript",
"types"
],
"devDependencies": {

@@ -62,2 +59,5 @@ "publint": "^0.3.17",

},
"engines": {
"node": ">=18"
},
"scripts": {

@@ -64,0 +64,0 @@ "build": "vite build",

@@ -71,8 +71,11 @@ # @i18n-micro/types

#### `Locale`
Represents a locale configuration.
#### `LocaleCode`
Represents a locale code (e.g., `'en'`, `'de'`).
#### `Strategies`
Represents the available routing strategies.

@@ -85,26 +88,35 @@

#### `ModuleOptions`
Represents the configuration options for the `nuxt-i18n-micro` module.
#### `ModuleOptionsExtend`
Extends `ModuleOptions` with additional properties.
#### `I18nRouteParams`
Represents route parameters for different locales.
#### `Params`
Represents a key-value pair of parameters for interpolation.
#### `PluralFunc`
Represents a function for handling pluralization in translations.
#### `GlobalLocaleRoutes`
Represents global route configurations for different locales.
#### `Translations`
Represents a key-value pair of translations.
#### `Translation`
Represents a translation value, which can be a string, number, boolean, nested translations, or `null`.
#### `PluralTranslations`
Represents translations for singular and plural forms.

@@ -111,0 +123,0 @@