yjp 1 روز پیش
والد
کامیت
b9bfc05aa4
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      template/template_func.go

+ 4 - 1
template/template_func.go

@@ -1,8 +1,9 @@
 package template
 
 import (
-	"github.com/Masterminds/sprig/v3"
 	"strings"
+
+	"github.com/Masterminds/sprig/v3"
 )
 
 var templateFuncMap = map[string]any{
@@ -191,6 +192,8 @@ var specialPluralWordMap = map[string]string{
 	"Information": "Information",
 	"info":        "infos",
 	"Info":        "Infos",
+	"staff":       "staffs",
+	"Staff":       "Staffs",
 }
 
 func Plural(s string) string {