diff --git a/electron-app/ecoindex-app/src/locales/en/translation.json b/electron-app/ecoindex-app/src/locales/en/translation.json index cf66d08..c7899c6 100644 --- a/electron-app/ecoindex-app/src/locales/en/translation.json +++ b/electron-app/ecoindex-app/src/locales/en/translation.json @@ -77,6 +77,7 @@ "Upgrade": "Upgrade", "Url(s) Measure (Simple mode)": "Url(s) Measure (Simple mode)", "Version de l'application": "Version de l'application", + "Version of the application": "Version of the application", "View": "View", "You can change the application language in the menu, Language.": "Vous pouvez changer la langue de l'application dans le menu, Language.", "You have an error but you think it's a bug. Report to the developper by clicking the button (datas are saved to your clipboard) and send theim by mail to ": "You have an error but you think it's a bug. Report to the developper by clicking the button (datas are saved to your clipboard) and send theim by mail to ", diff --git a/electron-app/ecoindex-app/src/locales/fr/translation.json b/electron-app/ecoindex-app/src/locales/fr/translation.json index 6a17ec6..d0ae710 100644 --- a/electron-app/ecoindex-app/src/locales/fr/translation.json +++ b/electron-app/ecoindex-app/src/locales/fr/translation.json @@ -77,6 +77,7 @@ "Upgrade": "Mettre à jour", "Url(s) Measure (Simple mode)": "Mesure d'URLs (mode simple)", "Version de l'application": "Version de l'application", + "Version of the application": "Version de l'application", "View": "Affichage", "You can change the application language in the menu, Language.": "Vous pouvez modifier la langue de l'application dans le menu Language.", "You have an error but you think it's a bug. Report to the developper by clicking the button (datas are saved to your clipboard) and send theim by mail to ": "Vous avez une erreur mais vous pensez qu'il s'agit d'un bogue. Signalez-le au développeur en cliquant sur le bouton (les données sont enregistrées dans votre presse-papiers) et envoyez-le par courrier à ", diff --git a/electron-app/ecoindex-app/src/main/handlers/isLighthousePluginEcoindexInstalled.ts b/electron-app/ecoindex-app/src/main/handlers/isLighthousePluginEcoindexInstalled.ts index 9cc6373..0886e95 100644 --- a/electron-app/ecoindex-app/src/main/handlers/isLighthousePluginEcoindexInstalled.ts +++ b/electron-app/ecoindex-app/src/main/handlers/isLighthousePluginEcoindexInstalled.ts @@ -10,7 +10,7 @@ import { version } from 'react' // 3. Update if necessay /** - * Check is Mandatory is installed on host. + * Check if LighthousePluginEcoindex (Mandatory) is installed on host. * @param _event IpcMainEvent | IpcMainInvokeEvent * @returns boolean */ diff --git a/electron-app/ecoindex-app/src/main/main.ts b/electron-app/ecoindex-app/src/main/main.ts index bf3f308..e4f52df 100644 --- a/electron-app/ecoindex-app/src/main/main.ts +++ b/electron-app/ecoindex-app/src/main/main.ts @@ -20,20 +20,14 @@ import Updater from './Updater' import fixPath from 'fix-path' import { handleGetNodeVersion } from './handlers/HandleGetNodeVersion' import { handleHomeDir } from './handlers/HandleHomeDir' -import { handleInstallPuppeteerBrowser } from './handlers/PuppeteerBrowserInstall' -import { handleInstallSudoPuppeteerBrowser } from './handlers/SudoPuppeteerBrowserInstall' import { handleIsJsonConfigFileExist } from './handlers/HandleIsJsonConfigFileExist' import { handleJsonReadAndReload } from './handlers/HandleJsonReadAndReload' import { handleNodeInstalled } from './handlers/HandleGetNodeDir_NpmDir' -import { handlePluginInstalled } from './handlers/HandlePluginInstalled' import { handleSelectFolder } from './handlers/HandleSelectFolder' import { handleWorkDir } from './handlers/HandleWorkDir' import { handle_CMD_Actions } from './handlers/HandleCMDActions' import i18n from '../configs/i18next.config' -import { isAdmin } from './handlers/IsAdminOnHost' import { isLighthousePluginEcoindexInstalled } from './handlers/IsLighthousePluginEcoindexInstalled' -import { isLighthousePluginEcoindexInstalled_old } from './handlers/isLighthousePluginEcoindexInstalled_old' -import { isLighthousePluginEcoindexMustBeInstallOrUpdated } from './handlers/IsLighthousePluginEcoindexMustBeInstallOrUpdated' import { isPupperteerBrowserInstalled } from './handlers/IsPuppeteerBrowserInstalled' import log from 'electron-log/main' import os from 'os' diff --git a/electron-app/ecoindex-app/src/renderer/HelloWindow/App.tsx b/electron-app/ecoindex-app/src/renderer/HelloWindow/App.tsx index 0d3a0d0..5112b10 100644 --- a/electron-app/ecoindex-app/src/renderer/HelloWindow/App.tsx +++ b/electron-app/ecoindex-app/src/renderer/HelloWindow/App.tsx @@ -247,7 +247,7 @@ function HelloApp() {
- {t("Version de l'application")}: {pkg.version} + {t('Version of the application')}: {pkg.version}
) diff --git a/electron-app/ecoindex-app/src/renderer/MainWindow/App.tsx b/electron-app/ecoindex-app/src/renderer/MainWindow/App.tsx index 69149f5..6cf6597 100644 --- a/electron-app/ecoindex-app/src/renderer/MainWindow/App.tsx +++ b/electron-app/ecoindex-app/src/renderer/MainWindow/App.tsx @@ -25,7 +25,6 @@ import { SimplePanMesure } from '../components/simple-pan' import { SimpleTooltip } from '../components/simple-tooltip' import { TabsContent } from '@radix-ui/react-tabs' import { TypographyP } from '../ui/typography/TypographyP' -import { getMainWindow } from '@/shared/memory' import i18nResources from '../../configs/i18nResources' import log from 'electron-log/renderer' import packageJson from '../../../package.json' @@ -34,7 +33,7 @@ import { useTranslation } from 'react-i18next' const frontLog = log.scope('front/App') function TheApp() { - const [language, setLanguage] = useState('en') + // const [language, setLanguage] = useState('en') const [progress, setProgress] = useState(0) const [isJsonFromDisk, setIsJsonFromDisk] = useState(false) const [nodeVersion, setNodeVersion] = useState('') @@ -500,14 +499,14 @@ function TheApp() { /** * Detect language change. */ - useEffect(() => { - // window.languageChange.language((value) => { - // setLanguage(value) - // }) + // useEffect(() => { + // // window.languageChange.language((value) => { + // // setLanguage(value) + // // }) - // i18next.changeLanguage(language) - frontLog.debug('language', language) - }, [language]) + // // i18next.changeLanguage(language) + // frontLog.debug('language', language) + // }, [language]) /** * Display information in log and check if App is ready. @@ -757,7 +756,7 @@ function TheApp() {