From fcd59de6fbaec746685356fa8e7ac269ded76748 Mon Sep 17 00:00:00 2001 From: josc146 Date: Sun, 27 Aug 2023 21:37:32 +0800 Subject: [PATCH] correct Preset UI description --- frontend/src/_locales/ja/main.json | 5 +++-- frontend/src/_locales/zh-hans/main.json | 5 +++-- frontend/src/pages/PresetsManager/PresetsButton.tsx | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/_locales/ja/main.json b/frontend/src/_locales/ja/main.json index 248e974..38a2329 100644 --- a/frontend/src/_locales/ja/main.json +++ b/frontend/src/_locales/ja/main.json @@ -178,7 +178,7 @@ "Failed to import. Please copy a preset to the clipboard.": "インポートに失敗しました。プリセットをクリップボードにコピーしてください。", "Clipboard is empty.": "クリップボードが空です。", "Successfully copied to clipboard.": "クリップボードにコピーしました。", - "Edit Messages": "メッセージの編集", + "Edit Character Settings": "キャラクター設定を編集", "Go Back": "戻る", "Description": "説明", "Avatar Url": "アバターURL", @@ -244,5 +244,6 @@ "Failed to load local sound font, please check if the files exist - assets/sound-font": "ローカルサウンドフォントの読み込みに失敗しました、ファイルが存在するか確認してください - assets/sound-font", "Please convert model to safe tensors format first": "モデルを安全なテンソル形式に変換してください", "Convert To Safe Tensors Format": "安全なテンソル形式に変換", - "Please change Strategy to WebGPU to use safetensors format": "StrategyをWebGPUに変更して、安全なテンソル形式を使用してください" + "Please change Strategy to WebGPU to use safetensors format": "StrategyをWebGPUに変更して、安全なテンソル形式を使用してください", + "Preview Only": "プレビューのみ" } \ No newline at end of file diff --git a/frontend/src/_locales/zh-hans/main.json b/frontend/src/_locales/zh-hans/main.json index e59353b..13cf7c1 100644 --- a/frontend/src/_locales/zh-hans/main.json +++ b/frontend/src/_locales/zh-hans/main.json @@ -178,7 +178,7 @@ "Failed to import. Please copy a preset to the clipboard.": "导入失败。请复制一个预设到剪贴板", "Clipboard is empty.": "剪贴板没有内容", "Successfully copied to clipboard.": "成功复制到剪贴板", - "Edit Messages": "编辑对话", + "Edit Character Settings": "编辑人设", "Go Back": "返回", "Description": "描述", "Avatar Url": "头像图片地址", @@ -244,5 +244,6 @@ "Failed to load local sound font, please check if the files exist - assets/sound-font": "加载本地音色资源失败,请检查文件是否存在 - assets/sound-font", "Please convert model to safe tensors format first": "请先将模型转换为Safetensors格式", "Convert To Safe Tensors Format": "转换为Safetensors格式", - "Please change Strategy to WebGPU to use safetensors format": "请将Strategy改为WebGPU以使用safetensors格式" + "Please change Strategy to WebGPU to use safetensors format": "请将Strategy改为WebGPU以使用safetensors格式", + "Preview Only": "仅预览" } \ No newline at end of file diff --git a/frontend/src/pages/PresetsManager/PresetsButton.tsx b/frontend/src/pages/PresetsManager/PresetsButton.tsx index b80165c..642a956 100644 --- a/frontend/src/pages/PresetsManager/PresetsButton.tsx +++ b/frontend/src/pages/PresetsManager/PresetsButton.tsx @@ -250,14 +250,14 @@ export const ChatPresetEditor: FC<{ }} /> + }}>{!editingMessages ? t('Edit Character Settings') : t('Go Back')} } /> { editingMessages ? :
- { setEditingPreset({