UNPKG

nuxt-i18n-micro

Version:

Nuxt I18n Micro is a lightweight, high-performance internationalization module for Nuxt, designed to handle multi-language support with minimal overhead, fast build times, and efficient runtime performance.

13 lines (12 loc) 413 B
import type { H3Event } from 'h3'; import type { Locale } from 'nuxt-i18n-micro-types'; export interface LocaleInfo { current: string; default: string; fallback: string; available: string[]; locale: Locale | null; isDefault: boolean; isFallback: boolean; } export declare const useLocaleServerMiddleware: (event: H3Event, defaultLocale?: string, currentLocale?: string) => LocaleInfo;