datagrove / marketplace

2 stars 5 forks source link

Internationalize API messages and Style as Error #122

Closed r-southworth closed 1 year ago

r-southworth commented 1 year ago

Describe the bug Currently the APIs return English text error messages

To Reproduce Steps to reproduce the behavior:

  1. Go to provider/createaccount (in a language other than english)
  2. Fill in the form (with an error like a repeat phone number)
  3. Submit Form
  4. Scroll to bottom of form See error message in English

Expected behavior Messages should internationalize for users (if possible).

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context May need to send the language in the api call since the apis are on the server and can't get the lang attribute from the URL.

Proposed Solution Internationalize the error messages

r-southworth commented 1 year ago

Addressed with commit e61fedbe40d8611ae3ba0d8524fcde4e3a9a336c