mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-03 18:17:56 -05:00
fix: several toasts and messages stay in English in every language (#35328)
A handful of messages skipped translation: the /model command toasts in chat, "No content" in the file preview, the valves load error, the knowledge file viewer's unsupported file type and empty workbook messages, the archived and deleted chats toasts in the sidebar selection bar, and the row errors in the user CSV import. They now go through translation, reusing existing strings where one already says the same thing. Fixes #35327
This commit is contained in:
1 parent
6ea7d06322
commit
9aa4ea3787
6 files changed
+13
-11
No files matched your search
@@ -85,7 +85,7 @@
|
||||
) {
|
||||
validRows.push({ idx, columns });
|
||||
} else {
|
||||
toast.error(`Row ${idx + 1}: invalid format.`);
|
||||
toast.error($i18n.t('Row {{row}}: invalid format.', { row: idx + 1 }));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -105,7 +105,7 @@
|
||||
columns[3].toLowerCase(),
|
||||
generateInitialsImage(columns[0])
|
||||
).catch((error) => {
|
||||
toast.error(`Row ${idx + 1}: ${error}`);
|
||||
toast.error($i18n.t('Row {{row}}: {{error}}', { row: idx + 1, error }));
|
||||
return null;
|
||||
})
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user