瀏覽代碼

show badge title

父節點
當前提交
a0aa96a18c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      app/Models/Project.php

+ 1
- 1
app/Models/Project.php 查看文件

@@ -114,7 +114,7 @@ class Project extends Model
114 114
                 foreach($badgesData as $badge){
115 115
                     $badges[] = [
116 116
                         "imgUrl" => $badge->imgUrlLink,
117
-                        "name" => null,
117
+                        "name" => $badge->getTranslation("title", $locale),
118 118
                         "awardDate" => null
119 119
                     ];
120 120
                 }