Closed lgcshy closed 11 months ago
😂你可以接一个翻译软件的接口。。。。
aFog @.***> 于2023年10月11日周三 16:29写道:
RT
引入validate.Validator()中间件后,想把英文错误消息转成中文 { "code": 400, "reason": "VALIDATOR", "message": "invalid CreatePositionRequest.Position: embedded message failed validation | caused by: invalid Position.Code: value length must be between 2 and 50 runes, inclusive" }
— Reply to this email directly, view it on GitHub https://github.com/tx7do/kratos-cms/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADZKQJFUPCUQWMHHEP4PUTLX6ZKFRANCNFSM6AAAAAA53S2YIY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
hahah 不错的注意~~ 目前做mapping翻译 有点烦 想着有没有最佳实践方案
你可以fork一下,然后。。。。自己改一下。
aFog @.***> 于2023年10月12日周四 20:01写道:
hahah 不错的注意~~ 目前做mapping翻译 有点烦 想着有没有最佳实践方案
— Reply to this email directly, view it on GitHub https://github.com/tx7do/kratos-cms/issues/7#issuecomment-1759470214, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADZKQJFK72CTYKIF2X2D7LTX67LYDANCNFSM6AAAAAA53S2YIY . You are receiving this because you commented.Message ID: @.***>
RT
引入validate.Validator()中间件后,想把英文错误消息转成中文
{ "code": 400, "reason": "VALIDATOR", "message": "invalid CreatePositionRequest.Position: embedded message failed validation | caused by: invalid Position.Code: value length must be between 2 and 50 runes, inclusive" }