From ab68128cdf4681edf10b9407cd913dfe34aabbd3 Mon Sep 17 00:00:00 2001 From: Berkan Sivri Date: Tue, 2 Jun 2020 20:03:18 +0300 Subject: [PATCH] typo --- src/i18n/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n/index.js b/src/i18n/index.js index 1403803..f6643f8 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -4,14 +4,14 @@ import EN from "./en.json"; import TR from "./tr.json"; import ES from "./es.json"; -const trasnlations = { +const translations = { en: EN, tr: TR, es: ES, }; -const getTranslate = langCode => key => trasnlations[langCode][key] || key; +const getTranslate = langCode => key => translations[langCode][key] || key; const initialState = { langCode: "en",