Fix language consistency in job search and match emails
1. Pass session.Language to MatchJobRequest in cv-search-job so the LLM uses the correct language-specific prompt for job titles and summaries. 2. Replace hardcoded "Manual job description" with a template-driven label (email.match.manual-job-label) seeded in English and Romanian, so the match email subject and Job row reflect the user's language. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -198,7 +198,9 @@ public sealed class CvSearchJobTask : IJobTask
|
||||
// Pre-fetched text passed directly so cv-matcher-api skips re-fetching the page
|
||||
JobDescription = jobText,
|
||||
// User already gave GDPR consent when they clicked the one-time job search link
|
||||
GdprConsent = true
|
||||
GdprConsent = true,
|
||||
// Propagate language so the LLM uses the correct language-specific prompt
|
||||
Language = session.Language
|
||||
};
|
||||
|
||||
var matchResult = await _matcherApi.MatchJobAsync(matchRequest, ct);
|
||||
|
||||
Reference in New Issue
Block a user