瀏覽代碼

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)
tags/v0.9.0
balibabu 1 年之前
父節點
當前提交
d5f87a5498
No account linked to committer's email address

+ 1
- 0
web/src/hooks/file-manager-hooks.ts 查看文件

@@ -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({

+ 1
- 0
web/src/hooks/flow-hooks.ts 查看文件

@@ -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();


+ 1
- 1
web/src/layouts/components/right-toolbar/index.tsx 查看文件

@@ -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,
);


Loading…
取消
儲存