fix(i18n): translate recipe delete undo warning

Move the recipe delete modal's undo warning into modals.deleteRecipe.
recoverableWarning instead of hardcoded English; sync placeholders into
all 9 non-English locales
This commit is contained in:
Will Miao
2026-08-11 21:18:36 +08:00
parent 9659df6ad9
commit ebc31fb963
11 changed files with 31 additions and 1 deletions
+3
View File
@@ -1282,6 +1282,9 @@
"message": "Sind Sie sicher, dass Sie dieses Modell und alle zugehörigen Dateien löschen möchten?",
"recoverableWarning": "[TODO: Translate] This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "[TODO: Translate] This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "Modell ausschließen",
"message": "Sind Sie sicher, dass Sie dieses Modell ausschließen möchten? Ausgeschlossene Modelle erscheinen nicht in Suchergebnissen oder Modelllisten."
+3
View File
@@ -1282,6 +1282,9 @@
"message": "Are you sure you want to delete this model and all associated files?",
"recoverableWarning": "This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "Exclude Model",
"message": "Are you sure you want to exclude this model? Excluded models won't appear in searches or model lists."
+3
View File
@@ -1282,6 +1282,9 @@
"message": "¿Estás seguro de que quieres eliminar este modelo y todos los archivos asociados?",
"recoverableWarning": "[TODO: Translate] This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "[TODO: Translate] This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "Excluir modelo",
"message": "¿Estás seguro de que quieres excluir este modelo? Los modelos excluidos no aparecerán en búsquedas o listas de modelos."
+3
View File
@@ -1282,6 +1282,9 @@
"message": "Êtes-vous sûr de vouloir supprimer ce modèle et tous les fichiers associés ?",
"recoverableWarning": "[TODO: Translate] This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "[TODO: Translate] This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "Exclure le modèle",
"message": "Êtes-vous sûr de vouloir exclure ce modèle ? Les modèles exclus n'apparaîtront pas dans les recherches ou listes de modèles."
+3
View File
@@ -1282,6 +1282,9 @@
"message": "האם אתה בטוח שברצונך למחוק מודל זה וכל הקבצים הנלווים?",
"recoverableWarning": "[TODO: Translate] This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "[TODO: Translate] This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "החרג מודל",
"message": "האם אתה בטוח שברצונך להחריג מודל זה? מודלים מוחרגים לא יופיעו בחיפושים או ברשימות מודלים."
+3
View File
@@ -1282,6 +1282,9 @@
"message": "このモデルと関連するすべてのファイルを削除してもよろしいですか?",
"recoverableWarning": "[TODO: Translate] This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "[TODO: Translate] This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "モデルを除外",
"message": "このモデルを除外してもよろしいですか?除外されたモデルは検索やモデルリストに表示されません。"
+3
View File
@@ -1282,6 +1282,9 @@
"message": "이 모델과 모든 관련 파일을 삭제하시겠습니까?",
"recoverableWarning": "[TODO: Translate] This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "[TODO: Translate] This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "모델 제외",
"message": "이 모델을 제외하시겠습니까? 제외된 모델은 검색이나 모델 목록에 나타나지 않습니다."
+3
View File
@@ -1282,6 +1282,9 @@
"message": "Вы уверены, что хотите удалить эту модель и все связанные файлы?",
"recoverableWarning": "[TODO: Translate] This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "[TODO: Translate] This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "Исключить модель",
"message": "Вы уверены, что хотите исключить эту модель? Исключенные модели не будут отображаться в поиске или списках моделей."
+3
View File
@@ -1282,6 +1282,9 @@
"message": "你确定要删除此模型及所有相关文件吗?",
"recoverableWarning": "[TODO: Translate] This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "[TODO: Translate] This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "排除模型",
"message": "你确定要排除此模型吗?被排除的模型不会出现在搜索或模型列表中。"
+3
View File
@@ -1282,6 +1282,9 @@
"message": "您確定要刪除此模型及所有相關檔案嗎?",
"recoverableWarning": "[TODO: Translate] This will permanently delete the file after 30 seconds unless you undo."
},
"deleteRecipe": {
"recoverableWarning": "[TODO: Translate] This action can be undone for 30 seconds."
},
"excludeModel": {
"title": "排除模型",
"message": "您確定要排除此模型嗎?被排除的模型將不會出現在搜尋或模型列表中。"
+1 -1
View File
@@ -365,7 +365,7 @@ class RecipeCard {
</div>
<div class="delete-info">
<h3>${this.recipe.title}</h3>
<p>This action can be undone for 30 seconds.</p>
<p>${translate('modals.deleteRecipe.recoverableWarning')}</p>
</div>
</div>
<p class="delete-note">Note: Deleting this recipe will not affect the LoRA files used in it.</p>