ai translation refactor

This commit is contained in:
Mazyar
2026-05-19 21:58:44 +03:30
parent e9ec33f0d4
commit 2d5df8556f
5 changed files with 122 additions and 21 deletions
+2 -1
View File
@@ -255,7 +255,8 @@ func (t *Tender) ToResponse() *TenderResponse {
return t.ToResponseWithLanguage("")
}
// ToResponseWithLanguage converts a Tender entity to TenderResponse.
// ToResponseWithLanguage converts a Tender entity to TenderResponse using Mongo fields.
// Detail endpoints overlay MinIO translations in the service layer.
func (t *Tender) ToResponseWithLanguage(language string) *TenderResponse {
title := t.Title
description := t.Description