mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
453e96770d
@ -125,7 +125,7 @@ export class Auth {
|
||||
* use {@link Auth#locale} instead
|
||||
*/
|
||||
getLocale() {
|
||||
return this.getOption('locale') || 'en-US';
|
||||
return this.getOption('locale');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -28,7 +28,7 @@ export const Edit = withDynamicSchemaProps((props) => {
|
||||
const apiClient = useAPIClient();
|
||||
const cdn = useCDN();
|
||||
const { wrapSSR, hashId, componentCls: containerClassName } = useStyle();
|
||||
const locale = apiClient.auth.locale;
|
||||
const locale = apiClient.auth.locale || 'en-US';
|
||||
|
||||
const lang: any = useMemo(() => {
|
||||
const currentLang = locale.replace(/-/g, '_');
|
||||
|
Loading…
x
Reference in New Issue
Block a user