@@ -44,7 +44,7 @@ import {
4444 booleanExposingStateControl ,
4545} from "comps/controls/codeStateControl" ;
4646
47- import { getMomentLocale } from "i18n/momentLocale " ;
47+ import { getDayJSLocale } from "i18n/dayjsLocale " ;
4848import {
4949 autoCompleteDate ,
5050 itemsDataTooltip ,
@@ -151,7 +151,7 @@ let AutoCompleteCompBase = (function () {
151151 const [ validateState , setvalidateState ] = useState ( { } ) ;
152152
153153 // 是否中文环境
154- const [ chineseEnv , setChineseEnv ] = useState ( getMomentLocale ( ) === "zh-cn" ) ;
154+ const [ chineseEnv , setChineseEnv ] = useState ( getDayJSLocale ( ) === "zh-cn" ) ;
155155
156156 useEffect ( ( ) => {
157157 setsearchtext ( props . value . value ) ;
@@ -346,11 +346,11 @@ let AutoCompleteCompBase = (function () {
346346 tooltip : itemsDataTooltip ,
347347 placeholder : "[]" ,
348348 } ) }
349- { getMomentLocale ( ) === "zh-cn" &&
349+ { getDayJSLocale ( ) === "zh-cn" &&
350350 children . searchFirstPY . propertyView ( {
351351 label : trans ( "autoComplete.searchFirstPY" ) ,
352352 } ) }
353- { getMomentLocale ( ) === "zh-cn" &&
353+ { getDayJSLocale ( ) === "zh-cn" &&
354354 children . searchCompletePY . propertyView ( {
355355 label : trans ( "autoComplete.searchCompletePY" ) ,
356356 } ) }
0 commit comments