eduverse-backend / src /common /interfaces /translation.interface.ts
tarekdx3's picture
feat: implement Sprint 1 Dev A - Assignments and Grades modules
56e2348
Raw
History Blame Contribute Delete
598 Bytes
/**
* Translation Service Interface
*
* Stub for Sprint 1 — full implementation in Sprint 5 (Localization Module).
* All modules should accept Accept-Language header from day one.
*/
export interface ITranslationService {
applyTranslations<T>(
entities: T[],
entityType: string,
lang: string,
): Promise<T[]>;
getTranslation(
entityType: string,
entityId: number,
field: string,
lang: string,
): Promise<string>;
setTranslation(
entityType: string,
entityId: number,
field: string,
lang: string,
value: string,
): Promise<void>;
}