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