next-intl
Version:
Internationalization (i18n) for Next.js
11 lines (10 loc) • 360 B
TypeScript
import type { Locale, createFormatter } from 'use-intl/core';
/**
* Returns a formatter based on the given locale.
*
* The formatter automatically receives the request config, but
* you can override it by passing in additional options.
*/
export default function getFormatter(opts?: {
locale?: Locale;
}): Promise<ReturnType<typeof createFormatter>>;