Description
Description
When switching the language from English to Chinese and then back to English, some UI elements still display Chinese characters. The language changes completely only after a manual refresh.
Steps to Reproduce
Set the language to Chinese from English.
Switch back to English.
Observe that some parts of the UI still display Chinese characters.
Refresh the page, and then the language fully updates.
Expected Behavior
The entire UI should switch to the selected language immediately without requiring a refresh.
Actual Behavior
Some UI elements retain the previous language until the page is manually refreshed.
Possible Causes
The translation function might not be updating all UI elements dynamically.
Some elements might be cached and require a full reload to reflect the language change.
Suggested Fix
Ensure all UI elements update dynamically when the language is switched.
Force a re-render of the affected components upon language change.