<%# locals: (portal:, locale:, article: nil, category: nil) %> <% home_url = public_portal_locale_path(portal.slug, locale) %> <% current = article ? :article : (category ? :category : :home) %>
<% if portal.logo.present? %> <% end %> <%= portal.localized_value('name', locale) %>
<% if portal.public_locale_codes.length > 1 %>
<%= locale %>
<%= I18n.t('public_portal.sidebar.language') %>
<% portal.public_locale_codes.each do |code| %> <% is_current = code == locale %> <%= code %> <%= language_name(code) %> <% if is_current %> <% end %> <% end %>
<% end %>