You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This task isn't straightforward because the current translation approach relies on a common hook that takes a key, which must match the key in the translation file.
Challenges:
Error Message Handling: We're passing the entire error message from Formik (e.g., "profile.description" is a required field), rather than just the key.
Key-Name Dependency: The name prop of the FormikMarkdownField component must align with the Yup structure used in Formik. Simply extracting keys from the full error message won't work, as it would result in a messy, top-level error message structure in the translation file—something we want to avoid.
Recommendations:
Unify Error Messages: Create a ZenHub issue to standardize error messages across the application. Currently, there are three or more variations for the same type of error, which leads to inconsistency.
Update Translation Logic: Create a ZenHub issue to improve the error translation logic within the FormikMarkdownField component.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There is MD validation error translation.
The text was updated successfully, but these errors were encountered: