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

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