Validation error message does not update when switching language from Hindi back to English

Author: Munishwar001Created Aug 11, 2026Updated Aug 27, 2026

Bug Description

When changing the application language from English to Hindi and then switching back to English, the validation error message remains in Hindi.

Steps to Reproduce

  1. Open the Sign Up page.
  2. Set the application language to English.
  3. Leave the Password field empty.
  4. Trigger the validation error.
  5. Change the application language to Hindi.
  6. Observe the validation message in Hindi.
  7. Change the language back to English.
  8. Observe the validation message.

Actual Behavior

The application UI changes back to English, but the existing validation error message remains in Hindi.

Example: "कृपया Password दर्ज करें"

Expected Behavior

When the language is changed back to English, the validation error message should also be displayed in English.

Example: "Please enter Password"

Environment

  • Browser: Chrome
  • OS: Windows
  • Page: Sign Up / Registration
  • Language: English → Hindi → English

Additional Information

The issue appears to occur because the translated validation message may be stored in component state instead of storing the translation key and translating it using the current application language.

Image