File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ export default defineConfig({
7676 '@' : path . resolve ( __dirname , './src' ) ,
7777 } ,
7878 define : {
79+ 'process.env.DEFAULT_LANG' : JSON . stringify ( process . env . IS_SODOC ? 'zh-cn' : 'en' ) ,
7980 'process.env.ASSETS_PREFIX' : JSON . stringify ( assetsPrefix ) ,
8081 'process.env.REACT_USE_VERSION' : JSON . stringify ( version ) ,
8182 } ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export * from '@formkit/auto-animate/react'
66export * from './hooks'
77
88export const repoBase = 'https://github.com/sheinsight/react-use/blob/main/packages/react-use/src'
9- export const defaultLang = 'en'
9+ export const defaultLang = process . env . DEFAULT_LANG || 'en'
1010
1111export const OTP = ( ) : string => Math . random ( ) . toString ( 16 ) . slice ( - 6 ) . toUpperCase ( )
1212export const wait = ( ms = 300 , res : string = OTP ( ) ) : Promise < string > =>
You can’t perform that action at this time.
0 commit comments