diff --git a/src/gui/html/js/translateStaticText.js b/src/gui/html/js/translateStaticText.js
index fcfed2ad..4094281a 100644
--- a/src/gui/html/js/translateStaticText.js
+++ b/src/gui/html/js/translateStaticText.js
@@ -27,7 +27,7 @@
function translatePluginEditorTemplate(l10n) {
/* Plugin editor template. */
- const pluginEditor = document.getElementById('loot-plugin-editor').querySelector('template').content;
+ const pluginEditor = document.getElementById('editor').shadowRoot;
pluginEditor.getElementById('enableEdits').previousElementSibling.textContent = l10n.translate('Enable Edits');
pluginEditor.getElementById('priorityValue').previousElementSibling.textContent = l10n.translate('Priority');