fix(i18n): translate backend errors at UI boundaries
This commit is contained in:
1 parent
4422ac8e01
commit
2f44d36018
82 files changed
+1862
-335
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { test } from "vitest";
|
||||
import {
|
||||
databaseBackupFilePath,
|
||||
@@ -203,3 +204,10 @@ test("retention never selects failed backup runs", () => {
|
||||
["old"],
|
||||
);
|
||||
});
|
||||
|
||||
test("scheduled backup history translates stable backend errors inline", () => {
|
||||
const source = readFileSync("apps/desktop/src/components/backup/ScheduledDatabaseBackupSettings.vue", "utf8");
|
||||
|
||||
assert.match(source, /\{\{ translateBackendError\(t, run\.error\) \}\}/);
|
||||
assert.doesNotMatch(source, /\{\{ run\.error \}\}/);
|
||||
});
|
||||
Reference in new issue
Block a user