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.
15 lines (14 loc) • 566 B
TypeScript
/**
* Server-side translation loader.
* In `premerged` mode, layers/fallback/root+page are merged at build time and this loader
* reads a single Nitro asset. In `source` mode, compact source files are merged at runtime.
*/
import type { Translations } from '@i18n-micro/types';
/**
* Load translations for a given locale and page.
* Returns merged translations and a pre-serialized JSON string for the API route.
*/
export declare function loadTranslationsFromServer(locale: string, routeName: string): Promise<{
data: Translations;
json: string;
}>;