UNPKG

@neiderruiz/translate-files

Version:

Internationalize and manage your website easily with (CSV or JSON to i18n)

13 lines (9 loc) 281 B
import { useTypedTranslation } from "./use-typed-translation"; export type FlattenKeys<T> = T extends object ? { [K in keyof T & string]: T[K] extends string ? K : `${K}.${FlattenKeys<T[K]>}` }[keyof T & string] : ''; export { useTypedTranslation };