Browse Source

260318 ESG圖片敘述未依語系摘選

OMEGA\lulufj.ho 2 weeks ago
parent
commit
d12f8d02c3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Http/Controllers/Api/EsgController.php

+ 1
- 1
app/Http/Controllers/Api/EsgController.php View File

65
                 "img_pc" => $esg->banner_pc_url,
65
                 "img_pc" => $esg->banner_pc_url,
66
                 "img_mobile" => $esg->banner_mobile_url,
66
                 "img_mobile" => $esg->banner_mobile_url,
67
                 "img_alt" => $esg->getTranslation("banner_alt", $locate, false),
67
                 "img_alt" => $esg->getTranslation("banner_alt", $locate, false),
68
-                "text" => $esg->description ?? "",
68
+                "text" => $esg->getTranslation("description", $locate, false),
69
             ],
69
             ],
70
             "paragraphs" => $this->prepareOutputContent($esg->paragraphs->toArray(), $locate)
70
             "paragraphs" => $this->prepareOutputContent($esg->paragraphs->toArray(), $locate)
71
         ];
71
         ];