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
I have a work in progress where user can type their one chord, and this goes to the chord builder. It's very straightforward because the chord parser does the analysis of the user input for me.
My goal today it to display error to the user in his language. I could translate the error message that the library return, but it is definitively a bad solution (and moreover the error returned contains some variables).
I have though about 2 obvious way to fix it (and both can be implemented together).
1 - add a translation to the library that we can pass globaly to teoria at the runtime, and we can return already translated messages to the user
2 - throw a different exception for each error : this would be very helpful. It will allow to know what is going wrong before telling the user it's wrong. Then we can adapt the action we want the user to achieve to fix it.
obviously, we can mix both solution and throw different exception with translated message.
The text was updated successfully, but these errors were encountered:
Hi,
I have a work in progress where user can type their one chord, and this goes to the chord builder. It's very straightforward because the chord parser does the analysis of the user input for me.
My goal today it to display error to the user in his language. I could translate the error message that the library return, but it is definitively a bad solution (and moreover the error returned contains some variables).
I have though about 2 obvious way to fix it (and both can be implemented together).
obviously, we can mix both solution and throw different exception with translated message.
The text was updated successfully, but these errors were encountered: