mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +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
|
* use {@link Auth#locale} instead
|
||||||
*/
|
*/
|
||||||
getLocale() {
|
getLocale() {
|
||||||
return this.getOption('locale') || 'en-US';
|
return this.getOption('locale');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +28,7 @@ export const Edit = withDynamicSchemaProps((props) => {
|
|||||||
const apiClient = useAPIClient();
|
const apiClient = useAPIClient();
|
||||||
const cdn = useCDN();
|
const cdn = useCDN();
|
||||||
const { wrapSSR, hashId, componentCls: containerClassName } = useStyle();
|
const { wrapSSR, hashId, componentCls: containerClassName } = useStyle();
|
||||||
const locale = apiClient.auth.locale;
|
const locale = apiClient.auth.locale || 'en-US';
|
||||||
|
|
||||||
const lang: any = useMemo(() => {
|
const lang: any = useMemo(() => {
|
||||||
const currentLang = locale.replace(/-/g, '_');
|
const currentLang = locale.replace(/-/g, '_');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user