fix: Set the default language to English #1306 (#1694)

### What problem does this PR solve?
fix: Set the default language to English #1306

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2024-07-24 19:19:13 +08:00 committed by GitHub
parent d7426d86d5
commit d5f87a5498
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ export const useFetchFileList = (): ResponseType<any> & IListResult => {
},
],
initialData: {},
gcTime: 0,
queryFn: async (params: any) => {
console.info(params);
const { data } = await fileManagerService.listFile({

View File

@ -70,6 +70,7 @@ export const useFetchFlowList = (): { data: IFlow[]; loading: boolean } => {
const { data, isFetching: loading } = useQuery({
queryKey: ['fetchFlowList'],
initialData: [],
gcTime: 0,
queryFn: async () => {
const { data } = await flowService.listCanvas();

View File

@ -25,7 +25,7 @@ const handleGithubCLick = () => {
const RightToolBar = () => {
const { t } = useTranslate('common');
const changeLanguage = useChangeLanguage();
const { language = 'en' } = useSelector(
const { language = 'English' } = useSelector(
(state) => state.settingModel.userInfo,
);