From a136c70d5830f3db1b88504875d5d8a2772acc8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damla=20K=C3=B6ksal?= Date: Thu, 25 Feb 2021 13:03:47 +0300 Subject: [PATCH] [#75] fix: add localization to titles of cities --- pages/contact/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/contact/index.tsx b/pages/contact/index.tsx index 9608cbe..31da61f 100644 --- a/pages/contact/index.tsx +++ b/pages/contact/index.tsx @@ -18,6 +18,7 @@ interface Props { common: CommonModel page: ContactModel Base64Values: string[] + locale: string } export const getStaticProps: GetStaticProps = async ({ locale = 'tr' }) => { @@ -31,7 +32,8 @@ export const getStaticProps: GetStaticProps = async ({ locale = 'tr' }) => { props: { common: commonData, page: pageData, - Base64Values: base64Values + Base64Values: base64Values, + locale: locale } } } @@ -43,6 +45,7 @@ export default function Contact ({ subtitle, informations }, + locale, Base64Values }: Props ): ReactElement { @@ -68,7 +71,7 @@ export default function Contact ({ { informations.map((element, index) => (
-

{element.city}

+

{element.city}