Skip to content

Commit

Permalink
fxi translation for original language
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiendmt committed Feb 23, 2021
1 parent 4ee2b44 commit 6d33d4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/country/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ const Country = ({ country }) => {
<div className={styles.overview_panel}>
<img src={country.flag} alt={country.name}></img>

<h1 className={styles.overview_name}>{country.translations[lang]}</h1>
<h1 className={styles.overview_name}>
{country.translations[lang] || country.name}
</h1>
<div className={styles.overview_region}>{country.region}</div>

<div className={styles.overview_numbers}>
Expand Down Expand Up @@ -98,7 +100,7 @@ const Country = ({ country }) => {
<Link href={`/country/${alpha3Code}`} key={name}>
<div className={styles.details_panel_borders_country}>
<img src={flag} alt={name} />
<div className={styles.details_panel_name}>{translations[lang]}</div>
<div className={styles.details_panel_name}>{translations[lang] || name}</div>
</div>
</Link>
)}
Expand Down

0 comments on commit 6d33d4f

Please sign in to comment.