mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
refactor: remove debug plugin success message from PluginForm and localization files
This commit is contained in:
@@ -122,11 +122,7 @@ export default function PluginForm({
|
||||
|
||||
await Promise.all(deletePromises);
|
||||
|
||||
toast.success(
|
||||
isDebugPlugin
|
||||
? t('plugins.saveConfigSuccessDebugPlugin')
|
||||
: t('plugins.saveConfigSuccessNormal'),
|
||||
);
|
||||
toast.success(t('plugins.saveConfigSuccessNormal'));
|
||||
onFormSubmit(1000);
|
||||
} catch (error) {
|
||||
toast.error(t('plugins.saveConfigError') + (error as Error).message);
|
||||
|
||||
@@ -278,8 +278,6 @@ const enUS = {
|
||||
updateSuccess: 'Plugin updated successfully',
|
||||
updateError: 'Update failed: ',
|
||||
saveConfigSuccessNormal: 'Configuration saved successfully',
|
||||
saveConfigSuccessDebugPlugin:
|
||||
'Configuration saved successfully, please manually restart the plugin',
|
||||
saveConfigError: 'Configuration save failed: ',
|
||||
config: 'Configuration',
|
||||
readme: 'Documentation',
|
||||
|
||||
@@ -279,8 +279,6 @@ const jaJP = {
|
||||
updateSuccess: 'プラグインの更新に成功しました',
|
||||
updateError: '更新に失敗しました:',
|
||||
saveConfigSuccessNormal: '設定を保存しました',
|
||||
saveConfigSuccessDebugPlugin:
|
||||
'設定を保存しました。手動でプラグインを再起動してください',
|
||||
saveConfigError: '設定の保存に失敗しました:',
|
||||
config: '設定',
|
||||
readme: 'ドキュメント',
|
||||
|
||||
@@ -265,7 +265,6 @@ const zhHans = {
|
||||
updateSuccess: '插件更新成功',
|
||||
updateError: '更新失败:',
|
||||
saveConfigSuccessNormal: '保存配置成功',
|
||||
saveConfigSuccessDebugPlugin: '保存配置成功,请手动重启插件',
|
||||
saveConfigError: '保存配置失败:',
|
||||
config: '配置',
|
||||
readme: '文档',
|
||||
|
||||
@@ -264,7 +264,6 @@ const zhHant = {
|
||||
updateSuccess: '插件更新成功',
|
||||
updateError: '更新失敗:',
|
||||
saveConfigSuccessNormal: '儲存配置成功',
|
||||
saveConfigSuccessDebugPlugin: '儲存配置成功,請手動重啟插件',
|
||||
saveConfigError: '儲存配置失敗:',
|
||||
config: '配置',
|
||||
readme: '文件',
|
||||
|
||||
Reference in New Issue
Block a user