mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
fix i18next.d.ts (#2064)
* fix i18next.d.ts * feat: packages web i18n * delete file
This commit is contained in:
@@ -26,7 +26,7 @@ export const useRequest = ({ successToast, errorToast, onSuccess, onError, ...pr
|
||||
onError?.(err, variables, context);
|
||||
|
||||
if (errorToast !== undefined) {
|
||||
const errText = t(getErrText(err, errorToast || ''));
|
||||
const errText = t(getErrText(err, errorToast || '') as any);
|
||||
if (errText) {
|
||||
toast({
|
||||
title: errText,
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { I18nNsType } from '@/types/i18next';
|
||||
import { I18nNsType } from '@fastgpt/web/types/i18next';
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
||||
|
||||
export const LANG_KEY = 'NEXT_LOCALE_LANG';
|
||||
|
Reference in New Issue
Block a user