feat(i18n): basic home translation

This commit is contained in:
Colin Darie 2022-11-30 16:25:42 +01:00
parent 83cf8168fa
commit f15363e178
3 changed files with 75 additions and 31 deletions

View file

@ -1,5 +1,6 @@
- content_for :footer do - content_for :footer do
= render partial: "root/footer" = render partial: "root/footer"
- content_for :title, t(".promise")
.landing .landing
.landing-panel.hero-panel .landing-panel.hero-panel
@ -7,11 +8,7 @@
.hero-wrapper .hero-wrapper
.hero-text .hero-text
%h1.hero-tagline %h1.hero-tagline
%em.hero-tagline-em Effectuer = simple_format(t(".promise"), { class: "hero-tagline-em" }, wrapper_tag: "em")
%br<>
%em.hero-tagline-em une démarche administrative
%br<>
%em.hero-tagline-em en ligne
.hero-illustration .hero-illustration
%img{ :src => image_url("landing/hero/dematerialiser.svg"), alt: '', width: 499, height: 280, loading: 'lazy' } %img{ :src => image_url("landing/hero/dematerialiser.svg"), alt: '', width: 499, height: 280, loading: 'lazy' }
@ -23,47 +20,38 @@
%img.role-image{ :src => image_url("landing/roles/usagers.svg"), alt: '', width: 176, height: 180, loading: 'lazy' } %img.role-image{ :src => image_url("landing/roles/usagers.svg"), alt: '', width: 176, height: 180, loading: 'lazy' }
.role-panel-70 .role-panel-70
%h2 Vous souhaitez effectuer une demande auprès dune administration ? %h2= t(".have_a_procedure")
%p.fr-h5 Réalisez vos demandes en toute simplicité et retrouvez vos dossiers en ligne %p.fr-h5= t(".fill_procedure")
= link_to "Comment trouver ma démarche ?", COMMENT_TROUVER_MA_DEMARCHE_URL, class: "fr-btn fr-btn--lg fr-mr-1w fr-mb-2w", title: new_tab_suffix("Comment trouver ma démarche ?"), **external_link_attributes = link_to t(".how_to_find_procedure"), COMMENT_TROUVER_MA_DEMARCHE_URL, class: "fr-btn fr-btn--lg fr-mr-1w fr-mb-2w", title: new_tab_suffix(t(".how_to_find_procedure")), **external_link_attributes
= link_to "Se connecter", new_user_session_path, class: "fr-btn fr-btn--secondary fr-btn--lg" = link_to t("views.users.sessions.new.connection"), new_user_session_path, class: "fr-btn fr-btn--secondary fr-btn--lg"
- cache "numbers-panel", :expires_in => 3.hours do - cache "numbers-panel", :expires_in => 3.hours do
.landing-panel .landing-panel
.container .container
%h2.center.fr-mb-4w #{APPLICATION_NAME} en chiffres %h2.center.fr-mb-4w= t(".our_numbers", name: APPLICATION_NAME)
%ul.numbers %ul.numbers
%li.number %li.number
.number-value .number-value
= number_with_delimiter(@stat&.administrations_partenaires, :locale => :fr) = number_with_delimiter(@stat&.administrations_partenaires)
.number-label< = simple_format(t(".numbers.administrations"), { class: "number-label" }, wrapper_tag: "div")
administrations
%br<>
partenaires
%li.number %li.number
.number-value .number-value
= number_with_delimiter(@stat&.dossiers_not_brouillon, :locale => :fr) = number_with_delimiter(@stat&.dossiers_not_brouillon)
.number-label< = simple_format(t(".numbers.files"), { class: "number-label" }, wrapper_tag: "div")
dossiers
%br<>
déposés
%li.number %li.number
.number-value .number-value
= "#{number_with_delimiter(50, :locale => :fr)} %" = "#{number_with_delimiter(50)} %"
.number-label< = simple_format(t(".numbers.processing_time"), { class: "number-label" }, wrapper_tag: "div")
de réduction
%br<>
des délais de traitement
.landing-panel.cta-panel .landing-panel.cta-panel
.container .container
.cta-panel-wrapper .cta-panel-wrapper
%div %div
%h2.cta-panel-title Une question, un problème ? %h2.cta-panel-title= t(".question")
%p.cta-panel-explanation La réponse est dans laide en ligne %p.cta-panel-explanation= t(".answer_in_faq")
%div %div
= link_to "Accéder à laide en ligne", FAQ_URL, class: "fr-btn fr-btn--lg", title: new_tab_suffix("Accéder à laide en ligne"), **external_link_attributes = link_to t(".online_help"), FAQ_URL, class: "fr-btn fr-btn--lg", title: new_tab_suffix(t(".online_help")), **external_link_attributes
-# We temporarily disable the link to the contact page on the homepage -# We temporarily disable the link to the contact page on the homepage
-# %p.cta-panel-explanation Notre équipe est disponible pour vous renseigner et vous aider -# %p.cta-panel-explanation Notre équipe est disponible pour vous renseigner et vous aider
-# %div -# %div
@ -77,7 +65,7 @@
.container .container
.cta-panel-wrapper .cta-panel-wrapper
%div %div
%h2.fr-h4 Administration : vous voulez dématerialiser ? %h2.fr-h4= t(".administration_dematerialize")
%p.cta-panel-explanation.grey Proposez à vos usagers de remplir leurs dossiers en ligne %p.cta-panel-explanation.grey= t(".administration_fill_online")
%div %div
= link_to "Découvrez notre outil", administration_path, class: "fr-btn fr-btn--lg" = link_to t(".administration_discover"), administration_path, class: "fr-btn fr-btn--lg"

View file

@ -0,0 +1,28 @@
---
en:
root:
landing:
promise: |
Carry out
an administrative procedure
online
have_a_procedure: You wish to make a request to an administration?
fill_procedure: Make your requests easily and find your files online
how_to_find_procedure: How do I find my procedure?
our_numbers: "%{name} in numbers"
numbers:
administrations: |
partner
administrations
files: |
files
submitted
processing_time: |
reduction
in processing time
question: A question, a problem?
answer_in_faq: The answer is in the online help
online_help: Access the online help
administration_dematerialize: "Administration: do you want to go paperless?"
administration_fill_online: Offer your users the possibility to fill in their files online
administration_discover: Find out more about our tool

View file

@ -0,0 +1,28 @@
---
fr:
root:
landing:
promise: |
Effectuer
une démarche administrative
en ligne
have_a_procedure: Vous souhaitez effectuer une demande auprès dune administration ?
fill_procedure: Réalisez vos demandes en toute simplicité et retrouvez vos dossiers en ligne
how_to_find_procedure: Comment trouver ma démarche ?
our_numbers: "%{name} en chiffres"
numbers:
administrations: |
administrations
partenaires
files: |
dossiers
déposés
processing_time: |
de réduction
des délais de traitement
question: Une question, un problème ?
answer_in_faq: La réponse est dans laide en ligne
online_help: Accéder à laide en ligne
administration_dematerialize: "Administration : vous voulez dématerialiser ?"
administration_fill_online: Proposez à vos usagers de remplir leurs dossiers en ligne
administration_discover: Découvrez notre outil