feat(localization): add custom filter message and update toast keys for recipe actions

This commit is contained in:
Will Miao
2025-08-31 20:32:37 +08:00
parent a83f020fcc
commit 6c83c65e02
2 changed files with 4 additions and 3 deletions

View File

@@ -713,7 +713,8 @@
}, },
"filters": { "filters": {
"applied": "{message}", "applied": "{message}",
"cleared": "Filters cleared" "cleared": "Filters cleared",
"noCustomFilterToClear": "No custom filter to clear"
}, },
"downloads": { "downloads": {
"imagesCompleted": "Example images {action} completed", "imagesCompleted": "Example images {action} completed",

View File

@@ -162,7 +162,7 @@ function getLoraStatusTitle(totalCount, missingCount) {
*/ */
function copyRecipeSyntax(recipeId) { function copyRecipeSyntax(recipeId) {
if (!recipeId) { if (!recipeId) {
showToast('recipeTab.noRecipeId', {}, 'error'); showToast('toast.recipes.noRecipeId', {}, 'error');
return; return;
} }
@@ -177,7 +177,7 @@ function copyRecipeSyntax(recipeId) {
}) })
.catch(err => { .catch(err => {
console.error('Failed to copy: ', err); console.error('Failed to copy: ', err);
showToast('recipeTab.copyFailed', {}, 'error'); showToast('toast.recipes.copyFailed', { message: err.message }, 'error');
}); });
} }