mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-16 14:54:23 +08:00
feat(i18n): default to English, localize runtime text and add Russian (#52)
This commit is contained in:
@@ -203,7 +203,7 @@ func RequestAgentUpdateHandler(c *gin.Context) {
|
||||
var request AgentUpdateInput
|
||||
if c.Request.ContentLength > 0 {
|
||||
if err := bindOptionalJSON(c.Request.Body, &request); err != nil {
|
||||
response.AbortBadRequest(c, "参数错误")
|
||||
response.AbortBadRequest(c, "invalid parameters")
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -283,7 +283,7 @@ func GetObservabilityHandler(c *gin.Context) {
|
||||
}
|
||||
var query ObservabilityQuery
|
||||
if err := c.ShouldBindQuery(&query); err != nil {
|
||||
response.AbortBadRequest(c, "参数错误")
|
||||
response.AbortBadRequest(c, "invalid parameters")
|
||||
return
|
||||
}
|
||||
view, err := GetObservability(c.Request.Context(), id, query)
|
||||
|
||||
Reference in New Issue
Block a user