UNPKG

typeorm-translatable

Version:

Translation classes, utils and decorators for i18n in TypeORM

11 lines (10 loc) 447 B
import { EntityManager } from 'typeorm'; /** * Custom repository that intercepts all queries and adds translation * @param manager Entity manager * @param locale Locale to use * @throws {NotTranslatableException} If locale cannot be resolved * @returns empty object * @experimental All methods might not work as expected */ export declare const TranslatableRepository: (manager: EntityManager, locale?: string | undefined) => {};