mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
add toasts keys i18n
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
saveSettings({ notificationEnabled: notificationEnabled });
|
||||
} else {
|
||||
toast.error(
|
||||
'Response notifications cannot be activated as the website permissions have been denied. Please visit your browser settings to grant the necessary access.'
|
||||
$i18n.t('Response notifications cannot be activated as the website permissions have been denied. Please visit your browser settings to grant the necessary access.')
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
|
||||
if (position) {
|
||||
await updateUserInfo(localStorage.token, { location: position });
|
||||
toast.success('User location successfully retrieved.');
|
||||
toast.success($i18n.t('User location successfully retrieved.'));
|
||||
} else {
|
||||
userLocation = false;
|
||||
}
|
||||
@@ -111,7 +111,7 @@
|
||||
saveSettings({ responseAutoCopy: responseAutoCopy });
|
||||
} else {
|
||||
toast.error(
|
||||
'Clipboard write permission denied. Please check your browser settings to grant the necessary access.'
|
||||
$i18n.t('Clipboard write permission denied. Please check your browser settings to grant the necessary access.')
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
);
|
||||
|
||||
if (res) {
|
||||
toast.success('Valves updated');
|
||||
toast.success($i18n.t('Valves updated'));
|
||||
valves = res;
|
||||
}
|
||||
} else if (tab === 'functions') {
|
||||
@@ -87,7 +87,7 @@
|
||||
});
|
||||
|
||||
if (res) {
|
||||
toast.success('Valves updated');
|
||||
toast.success($i18n.t('Valves updated'));
|
||||
valves = res;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
changes: [{ from: 0, to: codeEditor.state.doc.length, insert: formattedCode }]
|
||||
});
|
||||
|
||||
toast.success('Code formatted successfully');
|
||||
toast.success($i18n.t('Code formatted successfully'));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user