From d73136fa0d2a62f73629d750f5aab0c487ba14e2 Mon Sep 17 00:00:00 2001 From: Jim Laurie Date: Wed, 23 Aug 2017 11:20:43 +0200 Subject: [PATCH] Disable console for alert message i18n --- packages/strapi-admin/files/public/app/i18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/strapi-admin/files/public/app/i18n.js b/packages/strapi-admin/files/public/app/i18n.js index a97c69fc24..1bde45c64c 100644 --- a/packages/strapi-admin/files/public/app/i18n.js +++ b/packages/strapi-admin/files/public/app/i18n.js @@ -20,7 +20,7 @@ const requireTranslations = language => { try { return require(`./translations/${language}.json`); // eslint-disable-line global-require } catch (error) { - console.error(`Unable to load "${language}" translation. Please make sure "${language}.json" file exists in "admin/public/app/translations" folder.`); + console.error(`Unable to load "${language}" translation. Please make sure "${language}.json" file exists in "admin/public/app/translations" folder.`); // eslint-disable-line no-console return false; } }; @@ -37,7 +37,7 @@ const addLanguageLocaleData = language => { addLocaleData(localeData); return true; } catch (error) { - console.error(`It looks like the language "${language}" is not supported by "react-intl" module.`); + console.error(`It looks like the language "${language}" is not supported by "react-intl" module.`); // eslint-disable-line no-console return false; } };