fix(search_box): use I18n.translate instead of bare translate in ECR template

This commit is contained in:
Richard Lora 2026-05-23 18:30:37 +00:00
parent 1dd549fd4b
commit 3ab75a1ab3

View File

@ -1,6 +1,6 @@
<form class="pure-form" action="/search" method="get">
<fieldset>
<% search_placeholder = CONFIG.page_enabled?("search") ? translate(locale, "search") : translate(locale, "search_subscriptions_placeholder") %>
<% search_placeholder = CONFIG.page_enabled?("search") ? I18n.translate(locale, "search") : I18n.translate(locale, "search_subscriptions_placeholder") %>
<input type="search" id="searchbox" autocorrect="off"
autocapitalize="none" spellcheck="false" <% if autofocus %>autofocus<% end %>
name="q" placeholder="<%= I18n.translate(locale, "search") %>"