feat: add dynamic breadcrumb (#706)

* feat: add dynamic breadcrumb

* feat: pr feedback
This commit is contained in:
Manuel authored and GitHub committed 2024-06-29 17:28:22 +02:00
1 parent be100b610e
commit 4e1bbf2ae6
21 files changed
+258 -58

No files matched your search

+8
View File
@@ -11,3 +11,11 @@ export const languageMapping = () => {
return mapping as Record<(typeof supportedLanguages)[number], () => ReturnType<typeof enTranslations>>;
};
type NestedKeyOf<ObjectType extends object> = {
[Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object
? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}`
: `${Key}`;
}[keyof ObjectType & (string | number)];
export type TranslationKeys = NestedKeyOf<typeof enTranslations>;