fix: i18n gaps in popular searches and compare table
Some checks failed
Architecture Governance / architecture (push) Has been cancelled
Some checks failed
Architecture Governance / architecture (push) Has been cancelled
- SearchFacade.popularSearches hardcoded English titles regardless of active locale. Converted to a getter using translate.t() for the displayed title/text; the underlying search query stays the stable English canonical term the backend index matches against. - Compare table and compare page rendered product.name raw instead of through getTranslatedField(), same pattern used everywhere else product titles are shown (catalog, product detail). - SearchTrendingService.loadTrending() is a genuine backend gap (no trending-search endpoint exists) - already degrades gracefully, documented as a gap in BACKEND-API-REFERENCE.md \u00a712.6 rather than faked client-side. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -144,6 +144,10 @@ export const en: Translations = {
|
||||
noResultsHint: 'Try changing your query or using different keywords',
|
||||
emptyResultsAria: 'Empty search results',
|
||||
popularCategories: 'Popular categories',
|
||||
popularSmartphones: 'Smartphones',
|
||||
popularSneakers: 'Sneakers',
|
||||
popularHeadphones: 'Headphones',
|
||||
popularLaptops: 'Laptops',
|
||||
recommendedProducts: 'Recommended products',
|
||||
aiSuggestionHint: 'AI suggestion (future)',
|
||||
suggestionType: {
|
||||
|
||||
Reference in New Issue
Block a user