TranslationKey
TranslationKey<
T
,Key
>:Key
extendsstring
?T
[Key
] extendsobject
?T
[Key
] extends{ [K in Language]: string }
?Key
: `${Key}.${TranslationKey<T[Key]>}` : `${Key}` :never
Type Parameters
• T extends object
• Key = keyof T