From 6d33d4fe571abc88b6f045be5842080ad24d20b8 Mon Sep 17 00:00:00 2001 From: bastienxs Date: Tue, 23 Feb 2021 15:57:28 +0100 Subject: [PATCH] fxi translation for original language --- src/pages/country/[id].js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/country/[id].js b/src/pages/country/[id].js index 0a732c7..5bc972d 100644 --- a/src/pages/country/[id].js +++ b/src/pages/country/[id].js @@ -35,7 +35,9 @@ const Country = ({ country }) => {
{country.name} -

{country.translations[lang]}

+

+ {country.translations[lang] || country.name} +

{country.region}
@@ -98,7 +100,7 @@ const Country = ({ country }) => {
{name} -
{translations[lang]}
+
{translations[lang] || name}
)}