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) 409 B
import type { Locale } from '@i18n-micro/types'; import type { H3Event } from 'h3'; 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;