Replies: 1 comment
-
Hi @ElAdrixHD, I'll take a look into this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Form labels not updating when language is changed
Description
I'm experiencing an issue where form field labels don't update automatically when the application language is changed using Nylo's localization system. The form uses
trans()
for internationalization, but the labels remain in the previous language until the form is recreated.Code Example
Form definition:
Page implementation:
Current Behavior
changeLanguage('es')
or similarExpected Behavior
Form field labels should automatically update to reflect the new language when
changeLanguage()
is called.Attempted Solutions
Moving form creation to view()
Result: Labels update correctly, but form data is lost on each rebuild.
Questions
Would appreciate any guidance on the best approach to handle this scenario while maintaining data persistence and following best practices.
Related Files:
lib/app/forms/login_form.dart
lang/en.json
,lang/es.json
Beta Was this translation helpful? Give feedback.
All reactions