You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When translating messages in a layout, GetText takes most of the request time to translate the message, because it seems that its domaintext isn't set (even if we force it with GetText.bindtextdomain).
For example, just rendering the following code in a layout takes more than 30s, where it takes less than a second when the code is in a view. Am I doing something wrong to have such difference between a layout and a view rendering?
Regards.
<% 1000.times.each do |i| %>
<%= _("toto #{i}") %>
<% end %>
The text was updated successfully, but these errors were encountered:
Hi,
When translating messages in a layout, GetText takes most of the request time to translate the message, because it seems that its domaintext isn't set (even if we force it with GetText.bindtextdomain).
For example, just rendering the following code in a layout takes more than 30s, where it takes less than a second when the code is in a view. Am I doing something wrong to have such difference between a layout and a view rendering?
Regards.
<% 1000.times.each do |i| %>
<%= _("toto #{i}") %>
<% end %>
The text was updated successfully, but these errors were encountered: