From ce2ff5a4b27f429c2d945d1cb9ce723b402e5712 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Wed, 22 Jan 2020 19:14:07 +0100 Subject: [PATCH] :alien: traduit le champs de date --- source/components/conversation/DateInput.tsx | 4 +- .../layout/Footer/Footer.tsx | 57 ++++++++++--------- 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/source/components/conversation/DateInput.tsx b/source/components/conversation/DateInput.tsx index e2ee7348f..2c232990a 100644 --- a/source/components/conversation/DateInput.tsx +++ b/source/components/conversation/DateInput.tsx @@ -81,7 +81,7 @@ export default FormDecorator('input')(function DateInput({
{ @@ -117,7 +117,7 @@ export default FormDecorator('input')(function DateInput({ type="tel" css="text-align: left;" ref={yearInput} - placeholder="AAAA" + placeholder={language === 'fr' ? 'AAAA' : 'YYYY'} onChange={({ target: { value } }) => { handleDateChange({ year: value }) }} diff --git a/source/sites/mon-entreprise.fr/layout/Footer/Footer.tsx b/source/sites/mon-entreprise.fr/layout/Footer/Footer.tsx index d1273ebe4..2fa5f36d9 100644 --- a/source/sites/mon-entreprise.fr/layout/Footer/Footer.tsx +++ b/source/sites/mon-entreprise.fr/layout/Footer/Footer.tsx @@ -50,35 +50,20 @@ const Footer = () => { blacklist={feedbackBlacklist.map(lens => view(lens, sitePaths))} />
- {i18n.language === 'fr' && } -
- {i18n.language === 'en' && ( -

- This website is provided by the{' '} - Urssaf, the French social - security contributions collector, and the government’s public - startup incubator, beta.gouv.fr - . -

+ {i18n.language === 'fr' && ( + <> + +
+ )} - + {i18n.language === 'en' && ( +

+ This website is provided by the{' '} + Urssaf, the French social + security contributions collector. +

+ )}

{' • '} @@ -123,6 +108,24 @@ const Footer = () => { ))}

+ +