File tree Expand file tree Collapse file tree 4 files changed +50
-10
lines changed
common/utils/i18n/resources
pages/Home/components/ReportItem Expand file tree Collapse file tree 4 files changed +50
-10
lines changed Original file line number Diff line number Diff line change 4949 "filterBookmarked" : " Bookmarked" ,
5050 "noBookmarksTitle" : " No Bookmarked Reports" ,
5151 "noBookmarksMessage" : " Bookmark reports to find them quickly here" ,
52+ "noMatchesTitle" : " No Matching Reports" ,
53+ "noMatchesMessage" : " No reports match your current filters. Try changing or clearing your filters." ,
54+ "clearFilters" : " Clear Filters" ,
5255 "sortButton" : " Sort reports" ,
53- "filterButton" : " Filter reports" ,
54- "generalCategory" : " General" ,
55- "brainCategory" : " Brain" ,
56- "heartCategory" : " Heart"
56+ "filterButton" : " Filter reports"
57+ },
58+ "filter" : {
59+ "title" : " Filter" ,
60+ "category" : " Category" ,
61+ "apply" : " Apply"
62+ },
63+ "category" : {
64+ "general" : " General" ,
65+ "heart" : " Heart" ,
66+ "brain" : " Brain"
5767 }
5868}
Original file line number Diff line number Diff line change 4848 "filterAll" : " Todos" ,
4949 "filterBookmarked" : " Guardados" ,
5050 "noBookmarksTitle" : " No Hay Informes Guardados" ,
51- "noBookmarksMessage" : " Guarda informes como favoritos para encontrarlos rápidamente aquí"
51+ "noBookmarksMessage" : " Guarda informes como favoritos para encontrarlos rápidamente aquí" ,
52+ "noMatchesTitle" : " No Hay Informes Coincidentes" ,
53+ "noMatchesMessage" : " Ningún informe coincide con los filtros actuales. Intenta cambiar o eliminar los filtros." ,
54+ "clearFilters" : " Eliminar Filtros" ,
55+ "sortButton" : " Ordenar informes" ,
56+ "filterButton" : " Filtrar informes"
57+ },
58+ "filter" : {
59+ "title" : " Filtrar" ,
60+ "category" : " Categoría" ,
61+ "apply" : " Aplicar"
62+ },
63+ "category" : {
64+ "general" : " General" ,
65+ "heart" : " Corazón" ,
66+ "brain" : " Cerebro"
5267 }
5368}
Original file line number Diff line number Diff line change 4848 "filterAll" : " Tous" ,
4949 "filterBookmarked" : " Favoris" ,
5050 "noBookmarksTitle" : " Aucun Rapport en Favoris" ,
51- "noBookmarksMessage" : " Marquez des rapports comme favoris pour les trouver rapidement ici"
51+ "noBookmarksMessage" : " Marquez des rapports comme favoris pour les trouver rapidement ici" ,
52+ "noMatchesTitle" : " Aucun Rapport Correspondant" ,
53+ "noMatchesMessage" : " Aucun rapport ne correspond à vos filtres actuels. Essayez de modifier ou de supprimer vos filtres." ,
54+ "clearFilters" : " Effacer les Filtres" ,
55+ "sortButton" : " Trier les rapports" ,
56+ "filterButton" : " Filtrer les rapports"
57+ },
58+ "filter" : {
59+ "title" : " Filtrer" ,
60+ "category" : " Catégorie" ,
61+ "apply" : " Appliquer"
62+ },
63+ "category" : {
64+ "general" : " Général" ,
65+ "heart" : " Cœur" ,
66+ "brain" : " Cerveau"
5267 }
5368}
Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ const ReportItem: React.FC<ReportItemProps> = ({
3939 // Get category translation key based on category value
4040 const getCategoryTranslationKey = ( ) => {
4141 if ( categoryStr === ReportCategory . GENERAL . toLowerCase ( ) ) {
42- return 'list.generalCategory ' ;
42+ return 'category.general ' ;
4343 } else if ( categoryStr === ReportCategory . BRAIN . toLowerCase ( ) ) {
44- return 'list.brainCategory ' ;
44+ return 'category.brain ' ;
4545 } else if ( categoryStr === ReportCategory . HEART . toLowerCase ( ) ) {
46- return 'list.heartCategory ' ;
46+ return 'category.heart ' ;
4747 }
48- return 'list.generalCategory ' ; // Default to general if not found
48+ return 'category.general ' ; // Default to general if not found
4949 } ;
5050
5151 // Get the appropriate icon for the category
You can’t perform that action at this time.
0 commit comments