epam / UUI

React-based components and accelerators library built by EPAM Systems.
https://uui.epam.com/
MIT License
179 stars 65 forks source link

[Form]: Form validation message translate #2197

Closed AlexDormash closed 5 months ago

AlexDormash commented 5 months ago

Please answer the following questions for yourself before submitting an issue.

Steps to Reproduce

  1. Trigger validation message
  2. Change the language(while validation message is active)
  3. Validation message is still on previous language

Actual result

Validation message is on previous language image

Expected result

Validation message is on selected language image

Environment

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

AlekseyManetov commented 5 months ago

UUI components do not have any subscription to localization changes. Localization is stored in the global i18n variable, and changing it does not trigger an app update itself. Therefore, it's required to reload the app when the language is changed on your side. For example, you can store the selected language in the URL, and a URL change will trigger an app update.