Skip to content

Commit

Permalink
added note regarding the translation investigation
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeriaMaltseva committed Dec 18, 2024
1 parent dfad5ba commit b935b23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/image-editor/editor.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@
aElement.setAttribute('aria-expanded', 'false');
spanElement.setAttribute('class', 'name trn');
//TODO: how to solve this? spanElement.innerText = parent.t('save');
spanElement.innerText = 'save';
// Possible ways:
// 1. Backend localisation support
// 2. Use PostMessage API
// 3. Check Symphony supports trans
spanElement.innerText = "{{ 'asset.sidebar.details'|trans }}";
aElement.appendChild(spanElement);
liElement.appendChild(aElement);
Expand Down

0 comments on commit b935b23

Please sign in to comment.