Remove duplicate map location translations

We were using the same texts twice. For the remove marker label text,
however, we were using the text defined in proposals for both proposals
and investments.

Ideally the translation keys for these texts would go in another
namespace, since they no longer refer to just proposals. However,
renaming the translation keys would mean losing the existing
translations in every language we manage through Crowdin. So we aren't
doing so.
This commit is contained in:
Javi Martín
2025-11-17 02:21:52 +01:00
parent b9adef481a
commit 8a575ae83c
6 changed files with 15 additions and 25 deletions

View File

@@ -4,11 +4,7 @@ describe MapLocations::FormFieldsComponent do
let(:proposal) { Proposal.new }
let(:map_location) { MapLocation.new }
let(:form) { ConsulFormBuilder.new(:proposal, proposal, ApplicationController.new.view_context, {}) }
let(:label) { "Map location" }
let(:help) { "Add a marker" }
let(:component) do
MapLocations::FormFieldsComponent.new(form, map_location: map_location, label: label, help: help)
end
let(:component) { MapLocations::FormFieldsComponent.new(form, map_location: map_location) }
it "is rendered when the map feature is enabled" do
Setting["feature.map"] = true