forked from MapComplete/MapComplete
UI: make sure all delete reasons have a translations, fix #2389
This commit is contained in:
parent
1fa8ba2274
commit
57d85bf493
2 changed files with 18 additions and 0 deletions
14
test/UI/PanoramaxDeleteReasonTranslations.spec.ts
Normal file
14
test/UI/PanoramaxDeleteReasonTranslations.spec.ts
Normal 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
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue