Black-Kamelia / Hedera

A self-hosted screenshots/files hosting system. Hedera + ShareX = ❤️
Apache License 2.0
33 stars 2 forks source link

Form errors are not reactive #245

Open SlamaFR opened 8 months ago

SlamaFR commented 8 months ago

If the user changes locale when filling a form, errors will remain in the previous locale.

If we replace strings with string suppliers, the message locale will update on the next submitting. Maybe there's a way to update the messages as the locale changes?

notKamui commented 8 months ago

maybe the error messages should be computed instead, and depend on the t function, which is reactive iirc