Draft: Issue #3591588: Use new DELETE route for language switcher.

Wires the language selector's "Delete translation" action, added in !1148 (merged), to the Canvas API delete route added in !1153 (merged)

Testing instructions

  • Enable language and content_translation; add a second language (e.g. Spanish) with URL prefix detection enabled.
  • Create a canvas_page and add a Spanish translation.
  • Open the page in the Canvas editor and open the language dropdown. Spanish shows a "more options" link.
  • Open its popover and click "Delete translation"; confirm the request (Network tab) is a DELETE to /es/canvas/api/v0/content/canvas_page/{id}/translations returning 204 (no new browser tab opens).
  • Confirm Spanish disappears from the dropdown without a manual page reload.
  • As a user with edit (update) but not whole-page delete rights, confirm the delete link is shown and works.
  • As a user without edit access, confirm no delete link is rendered.

Closes #3591588

Edited by Ignacio Sánchez Holgueras

Merge request reports

Loading