nginx_ui/nginx-ui-dev/api/system/translation.go

14 lines
243 B
Go
Raw Normal View History

2025-03-04 19:28:12 +08:00
package system
import (
"github.com/0xJacky/Nginx-UI/internal/translation"
"github.com/gin-gonic/gin"
"net/http"
)
func GetTranslation(c *gin.Context) {
code := c.Param("code")
c.JSON(http.StatusOK, translation.GetTranslation(code))
}