Skip to content

Commit

Permalink
Add tranlation support to navbar (#2432)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq authored Nov 10, 2023
1 parent 3010e27 commit ef80ca7
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 348 deletions.
19 changes: 19 additions & 0 deletions locales/fr/navbar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"navbar.home":"Accueil",
"navbar.marketplace": "Marketplace",
"navbar.documentation": "Documentation",
"navbar.faq":"FAQ",
"navbar.projects": "Projets",
"navbar.further.information": "Plus d'informations",
"navbar.further.support": "Support",
"navbar.news.and.events": "Nouvelles et événements",
"navbar.about": "À propos",
"navbar.members":"Membres",
"navbar.sponsors":"Sponsors",
"navbar.temurin.adopters":"Temurin Adopters",
"navbar.promote":"Promouvoir",
"navbar.api":"API",
"navbar.blog":"Blog",
"navbar.support.us":"Soutenez-nous",
"navbar.status":"Status"
}
34 changes: 17 additions & 17 deletions src/components/NavBar/__tests__/__snapshots__/NavBar.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exports[`NavBar component > navbar renders correctly 1`] = `
<a
href="/"
>
Home
Text
</a>
</li>
<li
Expand All @@ -54,7 +54,7 @@ exports[`NavBar component > navbar renders correctly 1`] = `
<a
href="/marketplace"
>
Marketplace
Text
</a>
</li>
<li
Expand All @@ -63,7 +63,7 @@ exports[`NavBar component > navbar renders correctly 1`] = `
<a
href="/docs"
>
Documentation
Text
</a>
</li>
<li
Expand All @@ -72,7 +72,7 @@ exports[`NavBar component > navbar renders correctly 1`] = `
<a
href="/docs/faq"
>
FAQ
Text
</a>
</li>
<li
Expand All @@ -86,7 +86,7 @@ exports[`NavBar component > navbar renders correctly 1`] = `
id="navbarDropdown"
role="button"
>
Projects
Text
</a>
<ul
aria-labelledby="navbarDropdown"
Expand Down Expand Up @@ -129,7 +129,7 @@ exports[`NavBar component > navbar renders correctly 1`] = `
id="navbarDropdown2"
role="button"
>
Further Information
Text
</a>
<ul
aria-labelledby="navbarDropdown2"
Expand All @@ -140,87 +140,87 @@ exports[`NavBar component > navbar renders correctly 1`] = `
class="dropdown-item"
href="/support"
>
Support
Text
</a>
</li>
<li>
<a
class="dropdown-item"
href="/news"
>
News & Events
Text
</a>
</li>
<li>
<a
class="dropdown-item"
href="/about"
>
About
Text
</a>
</li>
<li>
<a
class="dropdown-item"
href="/members"
>
Members
Text
</a>
</li>
<li>
<a
class="dropdown-item"
href="/sponsors"
>
Sponsors
Text
</a>
</li>
<li>
<a
class="dropdown-item"
href="/adopters"
>
Temurin Adopters
Text
</a>
</li>
<li>
<a
class="dropdown-item"
href="/temurin/buttons"
>
Promote
Text
</a>
</li>
<li>
<a
class="nav-link"
href="https://api.adoptium.net"
>
API
Text
</a>
</li>
<li>
<a
class="dropdown-item"
href="/blog"
>
Blog
Text
</a>
</li>
<li>
<a
class="dropdown-item"
href="/support-us"
>
Support Us
Text
</a>
</li>
<li>
<a
class="nav-link"
href="https://status.adoptium.net"
>
Status
Text
</a>
</li>
</ul>
Expand Down
Loading

0 comments on commit ef80ca7

Please sign in to comment.