Skip to content

Commit

Permalink
feat: eclaireurs
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoirelacoste committed Sep 29, 2021
1 parent aa513ee commit 5059670
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/app/website/src/hooks/useGetMenus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const useGetMenus = (locale: SupportedLanguage): GetMenus => {
const HEADER_LINKS = ['contribuer', 'faq', 'guides'];
const FOOTER_LINKS = ['contact', 'about', 'faq', 'legal', 'cgu', 'press'];
const footer: Link[] = [];
const header: Link[] = [];
const header: Link[] = [
{ label: t('header.guides'), href: () => navigate(t('links.guides')) }
];
const formatLink = (node: GetLinksQuery['allMdx']['nodes'][0]) => ({
href: () => navigate(t('links.' + node.frontmatter?.name)) || '#',
label: node.frontmatter?.label || ''
Expand Down
4 changes: 3 additions & 1 deletion src/libs/i18n/resources/en/website.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"header": {
"ctaText": "Add DisMoi"
"ctaText": "Add DisMoi",
"guides": "Guides"
},
"footer": {
"followUsOn": "Follow us on {{network}}",
Expand Down Expand Up @@ -113,6 +114,7 @@
}
},
"links": {
"guides": "/en/guides",
"about": "/en/about",
"contact": "/en/contact",
"contribuer": "/en/creating-a-post",
Expand Down
4 changes: 3 additions & 1 deletion src/libs/i18n/resources/fr/website.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"header": {
"ctaText": "Ajouter DisMoi"
"ctaText": "Ajouter DisMoi",
"guides": "Eclaireurs"
},
"footer": {
"followUsOn": "Suivez-nous sur {{network}}",
Expand Down Expand Up @@ -113,6 +114,7 @@
}
},
"links": {
"guides": "/fr/eclaireurs",
"about": "/fr/a-propos",
"contact": "/fr/contact",
"contribuer": "/fr/contribuer",
Expand Down

0 comments on commit 5059670

Please sign in to comment.