@@ -44,7 +44,7 @@ import {
44
44
booleanExposingStateControl ,
45
45
} from "comps/controls/codeStateControl" ;
46
46
47
- import { getMomentLocale } from "i18n/momentLocale " ;
47
+ import { getDayJSLocale } from "i18n/dayjsLocale " ;
48
48
import {
49
49
autoCompleteDate ,
50
50
itemsDataTooltip ,
@@ -151,7 +151,7 @@ let AutoCompleteCompBase = (function () {
151
151
const [ validateState , setvalidateState ] = useState ( { } ) ;
152
152
153
153
// 是否中文环境
154
- const [ chineseEnv , setChineseEnv ] = useState ( getMomentLocale ( ) === "zh-cn" ) ;
154
+ const [ chineseEnv , setChineseEnv ] = useState ( getDayJSLocale ( ) === "zh-cn" ) ;
155
155
156
156
useEffect ( ( ) => {
157
157
setsearchtext ( props . value . value ) ;
@@ -346,11 +346,11 @@ let AutoCompleteCompBase = (function () {
346
346
tooltip : itemsDataTooltip ,
347
347
placeholder : "[]" ,
348
348
} ) }
349
- { getMomentLocale ( ) === "zh-cn" &&
349
+ { getDayJSLocale ( ) === "zh-cn" &&
350
350
children . searchFirstPY . propertyView ( {
351
351
label : trans ( "autoComplete.searchFirstPY" ) ,
352
352
} ) }
353
- { getMomentLocale ( ) === "zh-cn" &&
353
+ { getDayJSLocale ( ) === "zh-cn" &&
354
354
children . searchCompletePY . propertyView ( {
355
355
label : trans ( "autoComplete.searchCompletePY" ) ,
356
356
} ) }
0 commit comments