next-intl
Version:
Internationalization (i18n) for Next.js
7 lines (6 loc) • 308 B
TypeScript
import type { AbstractIntlMessages } from 'use-intl';
import getConfig from './getConfig';
export declare function getMessagesFromConfig(config: Awaited<ReturnType<typeof getConfig>>): AbstractIntlMessages;
export default function getMessages(opts?: {
locale?: string;
}): Promise<AbstractIntlMessages>;