feat(i18n): add English and Simplified Chinese
This commit is contained in:
1 parent
38c4c8b781
commit
1e9e0678ee
149 files changed
+5356
-1144
No files matched your search
@@ -21,7 +21,7 @@ type response struct {
|
||||
}
|
||||
|
||||
func writeJSON(w http.ResponseWriter, status int, v any) {
|
||||
writeResponse(w, status, response{Code: 0, Data: v, Message: "成功"})
|
||||
writeResponse(w, status, response{Code: 0, Data: v, Message: message(w, "success")})
|
||||
}
|
||||
func writeFailure(w http.ResponseWriter, status, code int, message string, data any) {
|
||||
writeResponse(w, status, response{Code: code, Data: data, Message: message})
|
||||
|
||||
Reference in new issue
Block a user