Skip to content

Commit

Permalink
improve header with locale
Browse files Browse the repository at this point in the history
  • Loading branch information
JeSuisUnCaillou committed Jun 5, 2024
1 parent e4e8c0e commit c448324
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
10 changes: 3 additions & 7 deletions app/views/layouts/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
<div class="fr-header__brand fr-enlarge-link">
<div class="fr-header__brand-top">
<div class="fr-header__logo">
<p class="fr-logo">
Direction
<br/>Interministérielle
<br/>du Numérique
</p>
<%= simple_format t('layout.entity'), { class: 'fr-logo' }, wrapper_tag: 'p' %>
</div>
</div>
<div class="fr-header__service">
<a href="/" title="Accueil - <%= t('title') %> - DINUM">
<%= simple_format t('title'), { class: 'fr-header__service-title' }, wrapper_tag: 'p' %>
<a href="/" title="<%= t('pages.home.title')%> - <%= t('layout.title') %>">
<%= simple_format t('layout.title'), { class: 'fr-header__service-title' }, wrapper_tag: 'p' %>
</a>
</div>
</div>
Expand Down
14 changes: 11 additions & 3 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
fr:
title: |
Service de transmission administrative
des données des particuliers
layout:
entity: |
Direction
Interministérielle
du Numérique
title: |
Service de transmission administrative
des données des particuliers
pages:
home:
title: Accueil

0 comments on commit c448324

Please sign in to comment.