16 lines
399 B
TypeScript
16 lines
399 B
TypeScript
import { getTranslations } from "next-intl/server";
|
|
|
|
import type { SupportedLanguage } from "./config";
|
|
import type englishTranslation from "./lang/en.json";
|
|
|
|
declare module "next-intl" {
|
|
interface AppConfig {
|
|
Messages: typeof englishTranslation;
|
|
Locale: SupportedLanguage;
|
|
}
|
|
}
|
|
|
|
export const getI18n = getTranslations;
|
|
|
|
export { getMessages as getI18nMessages } from "next-intl/server";
|