p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

The Error message is not being Translated to selected Language

Open Ganeshvarikuppala opened this issue 1 year ago • 4 comments

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

It is not getting translated Pj5

Expected Behavior

It should be translated

Steps to reproduce

Steps:

  1. Go to Sign Up page 2.Select language 3.Enter the invalid inputs 4.You will get a error message displayed. 5.Now select another language. 6.Everything will be translated except Error message

Ganeshvarikuppala avatar Sep 07 '24 16:09 Ganeshvarikuppala

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

welcome[bot] avatar Sep 07 '24 16:09 welcome[bot]

Hi, I think the issue here is that because the error message gets re-populated only after the user has "touched" the input field, which means that they need to enter the text field, then leave the text field for the error message to re-populate. This can be seen in line 79 of client/modules/User/components/SignupForm.js: {field.meta.touched && field.meta.error && ( Perhaps one way to work around it is to change field.meta.touched to something else that doesn't require the user to enter and leave the textfield again after changing the language (perhaps field.meta.invalid?). The number of translations on translations/locales/hi/translations.json match the number on translations/locales/hi/translations.json for ReduxFormUtils, which I believe is controlling the translations for error messages for the signup form fields. I did notice one missing translation for "This username is already taken." though. Screenshot 2024-09-08 at 2 25 46 PM

Serena20003 avatar Sep 08 '24 21:09 Serena20003

Hey can i work on this issue?

AbhigyanSrivastav avatar Sep 21 '24 17:09 AbhigyanSrivastav

is it still open

Sankalpcreat avatar Oct 09 '24 08:10 Sankalpcreat