Spaces:
Sleeping
Sleeping
File size: 598 Bytes
56e2348 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /**
* 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>;
}
|