Changeset 929d98d in Klonkt


Ignore:
Timestamp:
06/21/2026 11:48:02 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
bbf9d1a
Parents:
fe86013
Message:

fix(i18n): search.ejs tracks loop shadowed t() → 500

function(t) in the tracks loop shadowed the translate t(); label
search.in_post now fetched before the loop (_inPost). Known pitfall.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/search.ejs

    rfe86013 r929d98d  
    2828  <% if (_tracks.length) { %>
    2929    <h2 class="search-section-title"><%= t('search.section_tracks') %></h2>
     30    <% var _inPost = t('search.in_post'); /* t() vóór de loop ophalen: function(t) overschaduwt 'm */ %>
    3031    <div class="search-tracks">
    3132      <% _tracks.forEach(function(t) {
     
    5657               hx-swap="innerHTML"
    5758               hx-push-url="<%= t.postUrl %>"
    58                aria-label="<%= t('search.in_post') %>"><%= t('search.in_post') %></a>
     59               aria-label="<%= _inPost %>"><%= _inPost %></a>
    5960          <% } %>
    6061        </div>
Note: See TracChangeset for help on using the changeset viewer.