mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
fix i18next.d.ts (#2064)
* fix i18next.d.ts * feat: packages web i18n * delete file
This commit is contained in:
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
|
||||
export const useBeforeunload = (props?: { callback?: () => any; tip?: string }) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const { tip = t('common.Confirm to leave the page'), callback } = props || {};
|
||||
const { tip = t('common:common.Confirm to leave the page'), callback } = props || {};
|
||||
|
||||
useEffect(() => {
|
||||
const listen =
|
||||
|
Reference in New Issue
Block a user