From afa78ac14049fec8bba0c6c46e4208389537972c Mon Sep 17 00:00:00 2001 From: Nada Date: Wed, 5 Jun 2024 09:59:50 +0400 Subject: [PATCH 1/4] fix: test meta vars --- src/App.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 75dbf158..f92bb809 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,6 +7,15 @@ import { useDevice } from '@deriv-com/ui'; import AppContent from './routes/AppContent'; const { VITE_CROWDIN_BRANCH_NAME, VITE_PROJECT_NAME, VITE_TRANSLATIONS_CDN_URL } = import.meta.env; +console.log( + 'VITE_CROWDIN_BRANCH_NAME', + VITE_CROWDIN_BRANCH_NAME, + 'VITE_PROJECT_NAME', + VITE_PROJECT_NAME, + 'VITE_TRANSLATIONS_CDN_URL', + VITE_TRANSLATIONS_CDN_URL +); +console.log(`${VITE_TRANSLATIONS_CDN_URL}/${VITE_PROJECT_NAME}/${VITE_CROWDIN_BRANCH_NAME}`); const i18nInstance = initializeI18n({ cdnUrl: `${VITE_TRANSLATIONS_CDN_URL}/${VITE_PROJECT_NAME}/${VITE_CROWDIN_BRANCH_NAME}`, }); From c3bb521160ea6cd319cfb81f970ed6f70ec4eb19 Mon Sep 17 00:00:00 2001 From: Nada Date: Wed, 5 Jun 2024 10:02:37 +0400 Subject: [PATCH 2/4] fix: disable no console --- src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index f92bb809..473e7007 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,6 +7,7 @@ import { useDevice } from '@deriv-com/ui'; import AppContent from './routes/AppContent'; const { VITE_CROWDIN_BRANCH_NAME, VITE_PROJECT_NAME, VITE_TRANSLATIONS_CDN_URL } = import.meta.env; +// eslint-disable-next-line no-console console.log( 'VITE_CROWDIN_BRANCH_NAME', VITE_CROWDIN_BRANCH_NAME, @@ -15,6 +16,7 @@ console.log( 'VITE_TRANSLATIONS_CDN_URL', VITE_TRANSLATIONS_CDN_URL ); +// eslint-disable-next-line no-console console.log(`${VITE_TRANSLATIONS_CDN_URL}/${VITE_PROJECT_NAME}/${VITE_CROWDIN_BRANCH_NAME}`); const i18nInstance = initializeI18n({ cdnUrl: `${VITE_TRANSLATIONS_CDN_URL}/${VITE_PROJECT_NAME}/${VITE_CROWDIN_BRANCH_NAME}`, From 223b5be1c44f9c309af6fae3932a2c2b2648792e Mon Sep 17 00:00:00 2001 From: Nada Date: Wed, 5 Jun 2024 10:06:13 +0400 Subject: [PATCH 3/4] fix: changed console line --- src/App.tsx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 473e7007..1d55b89e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,23 +7,24 @@ import { useDevice } from '@deriv-com/ui'; import AppContent from './routes/AppContent'; const { VITE_CROWDIN_BRANCH_NAME, VITE_PROJECT_NAME, VITE_TRANSLATIONS_CDN_URL } = import.meta.env; -// eslint-disable-next-line no-console -console.log( - 'VITE_CROWDIN_BRANCH_NAME', - VITE_CROWDIN_BRANCH_NAME, - 'VITE_PROJECT_NAME', - VITE_PROJECT_NAME, - 'VITE_TRANSLATIONS_CDN_URL', - VITE_TRANSLATIONS_CDN_URL -); -// eslint-disable-next-line no-console -console.log(`${VITE_TRANSLATIONS_CDN_URL}/${VITE_PROJECT_NAME}/${VITE_CROWDIN_BRANCH_NAME}`); + const i18nInstance = initializeI18n({ cdnUrl: `${VITE_TRANSLATIONS_CDN_URL}/${VITE_PROJECT_NAME}/${VITE_CROWDIN_BRANCH_NAME}`, }); const App = () => { const { isDesktop } = useDevice(); + // eslint-disable-next-line no-console + console.log( + 'VITE_CROWDIN_BRANCH_NAME', + VITE_CROWDIN_BRANCH_NAME, + 'VITE_PROJECT_NAME', + VITE_PROJECT_NAME, + 'VITE_TRANSLATIONS_CDN_URL', + VITE_TRANSLATIONS_CDN_URL + ); + // eslint-disable-next-line no-console + console.log(`${VITE_TRANSLATIONS_CDN_URL}/${VITE_PROJECT_NAME}/${VITE_CROWDIN_BRANCH_NAME}`); return ( From 39e0002f772c6a137f599fea4947a481853fb905 Mon Sep 17 00:00:00 2001 From: Nada Date: Wed, 5 Jun 2024 10:12:51 +0400 Subject: [PATCH 4/4] fix: remove console --- src/App.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1d55b89e..8ce4df38 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -14,17 +14,6 @@ const i18nInstance = initializeI18n({ const App = () => { const { isDesktop } = useDevice(); - // eslint-disable-next-line no-console - console.log( - 'VITE_CROWDIN_BRANCH_NAME', - VITE_CROWDIN_BRANCH_NAME, - 'VITE_PROJECT_NAME', - VITE_PROJECT_NAME, - 'VITE_TRANSLATIONS_CDN_URL', - VITE_TRANSLATIONS_CDN_URL - ); - // eslint-disable-next-line no-console - console.log(`${VITE_TRANSLATIONS_CDN_URL}/${VITE_PROJECT_NAME}/${VITE_CROWDIN_BRANCH_NAME}`); return (