mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-01 20:29:17 +01:00
* fix(deps): update dependency next-intl to v4 * fix: typecheck issue * refactor: implement improvements for next-intl v4 * fix: typecheck issues * fix: typecheck issue --------- Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com> Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
19 lines
468 B
TypeScript
19 lines
468 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, getScopedI18n } = {
|
|
getI18n: getTranslations,
|
|
getScopedI18n: getTranslations,
|
|
};
|
|
|
|
export { getMessages as getI18nMessages } from "next-intl/server";
|