UNPKG

@neiderruiz/translate-files

Version:

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

6 lines (5 loc) 255 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 };