krypton-org / krypton-auth

Express authentication middleware, using GraphQL and JSON Web Tokens.
https://krypton-org.github.io/krypton-auth
MIT License
9 stars 0 forks source link

Internationalization of notifications & emails #12

Open jrebecchi opened 4 years ago

maxmouchet commented 4 years ago

Maybe i18n should be performed on the client side ?
In this case should we return a string in the error ? Or just a type + code ?

jrebecchi commented 4 years ago

Indeed, we should by putting i18n on the client. I'd be in favor of that choice as it would be easier for the "client lib" users to customize the common error messages.

What do you think ?