Add language selector dropdown and Hindi support, remove Smart Farming section, fix bugs Description:
Title: Add language selector dropdown and Hindi support, remove Smart Farming section, fix bugs Description: Summary This PR makes several improvements to the Kisan Mandi dashboard: adds a globe icon language selector with Hindi support, removes the unused Smart Farming section, fixes bugs, and improves i18n coverage. Changes New Feature – Language Selector
- Replaced the EN/తె toggle button with a single globe icon that opens a dropdown menu showing all 3 languages
- Languages available: English, తెలుగు (Telugu), हिन्दी (Hindi)
- Active language is highlighted in green within the dropdown
- document.documentElement.lang dynamically updates on language switch New Feature – Hindi (hi) Translations
- Added complete Hindi translation file (src/i18n/hi.js) with all 47 UI strings
- Split monolithic translations.js into per-language files: en.js, te.js, hi.js Removed
- Removed "Smart Farming Features" section (FuturePlaceholder component and its import/usage in App.jsx) Bug Fixes
- Fixed trend() helper: was comparing max_price against midpoint instead of modal_price, causing all price cards to show "trending up" incorrectly
- Moved dark mode class from a child to document.documentElement for proper Tailwind dark: variant support
- Removed unused imports (Suspense, lazy, total, RadarChart, Radar, PolarGrid, PolarAngleAxis, TrendingUp, fmt) — lint now passes with 0 errors
- Added .env to .gitignore to prevent accidental API key commits UI / i18n Improvements
- Chart tabs, Filters label, and several hardcoded strings now use translation keys
- Added new translation keys: filters, totalRecords, states, districts, for, smartFarming
- html lang attribute now updates dynamically when language changes Files Changed
- src/App.jsx — language dropdown, dark mode fix, removed FuturePlaceholder import/section
- src/i18n/translations.js — now imports from per-language files
- src/i18n/en.js — extracted English translations
- src/i18n/te.js — extracted Telugu translations
- src/i18n/hi.js — new Hindi translations
- src/utils/helpers.js — trend() signature changed to (min, max, modal)
- src/components/PriceCard.jsx — updated trend() call to pass modal_price
- src/components/MarketChart.jsx — removed unused chart imports, tabs use translations
- src/components/FilterPanel.jsx — "Filters" label uses translation
- src/components/StatCard.jsx — removed unused fmt import
- src/components/StateOverview.jsx — removed unused TrendingUp import
- src/hooks/useCropData.js — suppressed exhaustive-deps warning for intentional pattern
- .gitignore — added .env