Merge origin/release/v2 into feat/fix-v2-stack-review-findings
This commit is contained in:
commit
e1775e524b
583 files changed
+16433
-9067
No files matched your search
@@ -18,7 +18,4 @@ declare module "next-intl" {
|
||||
// Keep these as direct exports so Turbopack and webpack can statically inspect
|
||||
// the client package's public surface.
|
||||
export const useI18n = useTranslations;
|
||||
export const useScopedI18n = useTranslations;
|
||||
export const useI18nMessages = () => useMessages();
|
||||
|
||||
export { useTranslations };
|
||||
+650
-1753
File diff suppressed because it is too large.
Load diff
@@ -10,9 +10,6 @@ declare module "next-intl" {
|
||||
}
|
||||
}
|
||||
|
||||
export const { getI18n, getScopedI18n } = {
|
||||
getI18n: getTranslations,
|
||||
getScopedI18n: getTranslations,
|
||||
};
|
||||
export const getI18n = getTranslations;
|
||||
|
||||
export { getMessages as getI18nMessages } from "next-intl/server";
|
||||
@@ -2,13 +2,13 @@ import type { NamespaceKeys, NestedKeyOf } from "next-intl";
|
||||
|
||||
import type { RemoveReadonly } from "@homarr/common/types";
|
||||
|
||||
import type { useI18n, useScopedI18n } from "./client";
|
||||
import type { useI18n } from "./client";
|
||||
import type enTranslation from "./lang/en.json";
|
||||
|
||||
export type TranslationFunction = ReturnType<typeof useI18n<never>>;
|
||||
export type ScopedTranslationFunction<
|
||||
NestedKey extends NamespaceKeys<IntlMessages, NestedKeyOf<IntlMessages>> = never,
|
||||
> = ReturnType<typeof useScopedI18n<NestedKey>>;
|
||||
> = ReturnType<typeof useI18n<NestedKey>>;
|
||||
export type TranslationObject = typeof enTranslation;
|
||||
export type stringOrTranslation = string | ((t: TranslationFunction) => string);
|
||||
|
||||
|
||||
Reference in new issue
Block a user