Browse Source

260225 目前字數計算+語系判斷

OMEGA\lulufj.ho 1 month ago
parent
commit
d024047b27
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/Filament/Resources/NewsResource.php

+ 2
- 2
app/Filament/Resources/NewsResource.php View File

96
                         ->reactive()
96
                         ->reactive()
97
                         ->helperText(function (callable $get) {
97
                         ->helperText(function (callable $get) {
98
 
98
 
99
-                            $activeLocale = $get('activeLocale') ?? 'zh_TW';
99
+                            $activeLocale = $locale ?? 'zh_TW';
100
 
100
 
101
                             $value = $get('title');
101
                             $value = $get('title');
102
 
102
 
128
                         ->reactive()
128
                         ->reactive()
129
                         ->helperText(function (callable $get) {
129
                         ->helperText(function (callable $get) {
130
 
130
 
131
-                            $activeLocale = $get('activeLocale') ?? 'zh_TW';
131
+                            $activeLocale = $locale ?? 'zh_TW';
132
 
132
 
133
                             $value = $get('description');
133
                             $value = $get('description');
134
 
134