Extract anyclip
This commit is contained in:
9
client/detect-domain-locale.ts
Normal file
9
client/detect-domain-locale.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { detectDomainLocale as Fn } from '../shared/lib/i18n/detect-domain-locale'
|
||||
|
||||
export const detectDomainLocale: typeof Fn = (...args) => {
|
||||
if (process.env.__NEXT_I18N_SUPPORT) {
|
||||
return (
|
||||
require('../shared/lib/i18n/detect-domain-locale') as typeof import('../shared/lib/i18n/detect-domain-locale')
|
||||
).detectDomainLocale(...args)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user