translation.go 243 B

12345678910111213
  1. package system
  2. import (
  3. "github.com/0xJacky/Nginx-UI/internal/translation"
  4. "github.com/gin-gonic/gin"
  5. "net/http"
  6. )
  7. func GetTranslation(c *gin.Context) {
  8. code := c.Param("code")
  9. c.JSON(http.StatusOK, translation.GetTranslation(code))
  10. }