UI: make sure all delete reasons have a translations, fix #2389

This commit is contained in:
Pieter Vander Vennet 2025-04-26 14:32:41 +02:00
parent 1fa8ba2274
commit 57d85bf493
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,14 @@
import { describe, it } from "vitest"
import { REPORT_REASONS } from "panoramax-js"
import Translations from "../../src/UI/i18n/Translations"
describe("PanoramaxDeleteReasonsTranslations", () => {
it("should have a translation for every possible delete reason", () => {
const t = Translations.t.image.panoramax
for (const reason of REPORT_REASONS) {
if (t.report[reason] === undefined) {
throw "No translation for delete reason " + reason
}
}
})
})