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
|
@ -568,9 +568,13 @@
|
|||
"otherFreeform": "Please specify why this image should be removed:",
|
||||
"placeholder": "Explain why the picture should be deleted",
|
||||
"report": {
|
||||
"blur_excess": "There is too much blurred, making the picture unusable",
|
||||
"blur_missing": "One or more faces are not properly blurred",
|
||||
"copyright": "The picture contains copyrighted content",
|
||||
"inappropriate": "This picture is inappropriate (it contains nudity, calls for hate or is not streetview)",
|
||||
"mislocated": "This picture is in a wrong location",
|
||||
"other": "Another reason, please specify",
|
||||
"picture_low_quality": "This picture has a low quality and is not useable",
|
||||
"privacy": "The picture shows a private property"
|
||||
},
|
||||
"requestDeletion": "Request picture deletion",
|
||||
|
|
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