refactor(tender-details): enhance translation and summary features

- Integrated language selection and translation functionality in TenderDetails, allowing users to choose display language and translate tender metadata.
- Added AI summary section to display overall summary of the tender.
- Updated API service to support translation requests and handle responses effectively.
- Improved pagination handling in AdminsTable for better user experience.
- Refactored various components to ensure consistent data flow and state management.
This commit is contained in:
AmirReza Jamali
2026-05-10 08:44:03 +03:30
parent f48cb7e249
commit f01632e38d
14 changed files with 378 additions and 33 deletions
@@ -34,6 +34,7 @@ const useTenderListPresenter = () => {
...apiDefaultParams,
offset: 0,
limit: 10,
lang: "en",
};
for (const [key, value] of searchParams.entries()) {
newParams[key] = value;
@@ -73,6 +74,7 @@ const useTenderListPresenter = () => {
error,
isPending,
setParams,
params,
data,
pathName,
isModalOpen,