flask-validator icon indicating copy to clipboard operation
flask-validator copied to clipboard

Multi language support

Open overbost opened this issue 5 years ago • 1 comments

It is appreciate if the messages and the response will managed by a simple module. This will allow to easy add languages and edit the error code in one place. I implemented this features in my API and i will edit this project to allow the multi-languages and the error code manager, but i hope the project will update with this features.

overbost avatar May 07 '20 16:05 overbost

This is my implementation (link expire in 30 days) https://ufile.io/abwr1e38

It check if you pass "lang=en" in URL, then if there is "lang" in identity with flask-jwt-extended, default is "en" There is "keys" file with the keys returned for specific errors Strings is moved and managed in language files This module should be extern to flask-validator because it can be used with other code outside

overbost avatar May 09 '20 15:05 overbost