From a30384573ec06afc832233d9aba2a7c1ced1bcde Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 2 Mar 2026 11:12:49 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=87(frontend)=20remove=20ads=20console?= =?UTF-8?q?=20i18next?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit i18next was adding ads to the console. We remove it from the console thanks to "showSupportNotice" option. We upgraded to have less noisy console as well during development. --- src/frontend/apps/impress/package.json | 2 +- .../apps/impress/src/i18n/initI18n.ts | 1 + src/frontend/yarn.lock | 36 ++++++------------- 3 files changed, 13 insertions(+), 26 deletions(-) diff --git a/src/frontend/apps/impress/package.json b/src/frontend/apps/impress/package.json index 5e0d207c..4b321f13 100644 --- a/src/frontend/apps/impress/package.json +++ b/src/frontend/apps/impress/package.json @@ -54,7 +54,7 @@ "emoji-datasource-apple": "16.0.0", "emoji-mart": "5.6.0", "emoji-regex": "10.6.0", - "i18next": "25.8.8", + "i18next": "25.8.12", "i18next-browser-languagedetector": "8.2.1", "idb": "8.0.3", "lodash": "4.17.23", diff --git a/src/frontend/apps/impress/src/i18n/initI18n.ts b/src/frontend/apps/impress/src/i18n/initI18n.ts index 0115a7c0..88078034 100644 --- a/src/frontend/apps/impress/src/i18n/initI18n.ts +++ b/src/frontend/apps/impress/src/i18n/initI18n.ts @@ -36,6 +36,7 @@ if (!isInitialized && !i18next.isInitialized) { lowerCaseLng: true, nsSeparator: false, keySeparator: false, + showSupportNotice: false, }) .then(() => { if (typeof document !== 'undefined') { diff --git a/src/frontend/yarn.lock b/src/frontend/yarn.lock index 35dc6c46..0d6016e5 100644 --- a/src/frontend/yarn.lock +++ b/src/frontend/yarn.lock @@ -1922,21 +1922,14 @@ resolved "https://registry.yarnpkg.com/@exodus/bytes/-/bytes-1.8.0.tgz#8382835f71db8377cf634a4ef5a71806e86ba9c7" integrity sha512-8JPn18Bcp8Uo1T82gR8lh2guEOa5KKU/IEKvvdp0sgmi7coPBWf1Doi1EXsGZb2ehc8ym/StJCjffYV+ne7sXQ== -"@floating-ui/core@^1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.7.3.tgz#462d722f001e23e46d86fd2bd0d21b7693ccb8b7" - integrity sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w== - dependencies: - "@floating-ui/utils" "^0.2.10" - -"@floating-ui/core@^1.7.4": +"@floating-ui/core@^1.7.3", "@floating-ui/core@^1.7.4": version "1.7.4" resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.7.4.tgz#4a006a6e01565c0f87ba222c317b056a2cffd2f4" integrity sha512-C3HlIdsBxszvm5McXlB8PeOEWfBhcGBTZGkGlWc2U0KFY5IwG5OQEuQ8rq52DZmcHDlPLd+YFBK+cZcytwIFWg== dependencies: "@floating-ui/utils" "^0.2.10" -"@floating-ui/dom@^1.0.0", "@floating-ui/dom@^1.0.1", "@floating-ui/dom@^1.7.4": +"@floating-ui/dom@^1.0.0", "@floating-ui/dom@^1.0.1": version "1.7.4" resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.7.4.tgz#ee667549998745c9c3e3e84683b909c31d6c9a77" integrity sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA== @@ -1952,20 +1945,13 @@ "@floating-ui/core" "^1.7.4" "@floating-ui/utils" "^0.2.10" -"@floating-ui/react-dom@^2.1.2": +"@floating-ui/react-dom@^2.1.2", "@floating-ui/react-dom@^2.1.7": version "2.1.7" resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.1.7.tgz#529475cc16ee4976ba3387968117e773d9aa703e" integrity sha512-0tLRojf/1Go2JgEVm+3Frg9A3IW8bJgKgdO0BN5RkF//ufuz2joZM63Npau2ff3J6lUVYgDSNzNkR+aH3IVfjg== dependencies: "@floating-ui/dom" "^1.7.5" -"@floating-ui/react-dom@^2.1.6": - version "2.1.6" - resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.1.6.tgz#189f681043c1400561f62972f461b93f01bf2231" - integrity sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw== - dependencies: - "@floating-ui/dom" "^1.7.4" - "@floating-ui/react@^0.26.28": version "0.26.28" resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.26.28.tgz#93f44ebaeb02409312e9df9507e83aab4a8c0dc7" @@ -1976,11 +1962,11 @@ tabbable "^6.0.0" "@floating-ui/react@^0.27.16": - version "0.27.16" - resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.27.16.tgz#6e485b5270b7a3296fdc4d0faf2ac9abf955a2f7" - integrity sha512-9O8N4SeG2z++TSM8QA/KTeKFBVCNEz/AGS7gWPJf6KFRzmRWixFRnCnkPHRDwSVZW6QPDO6uT0P2SpWNKCc9/g== + version "0.27.18" + resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.27.18.tgz#a664a45a867ed5e2999a858b5236a53cf60cf412" + integrity sha512-xJWJxvmy3a05j643gQt+pRbht5XnTlGpsEsAPnMi5F5YTOEEJymA90uZKBD8OvIv5XvZ1qi4GcccSlqT3Bq44Q== dependencies: - "@floating-ui/react-dom" "^2.1.6" + "@floating-ui/react-dom" "^2.1.7" "@floating-ui/utils" "^0.2.10" tabbable "^6.0.0" @@ -11248,10 +11234,10 @@ i18next-parser@9.3.0: vinyl "^3.0.0" vinyl-fs "^4.0.0" -i18next@25.8.8: - version "25.8.8" - resolved "https://registry.yarnpkg.com/i18next/-/i18next-25.8.8.tgz#b5fdf59a90ffda5f2cfe41725b6eb04e86a2fac8" - integrity sha512-gNTWXMBe9JBr6LAl2tqRfa6fn2EjrQJ3JBeH2jR+yIckwaJYdI7UfMQrnxzFjuFBb2FHy9Yn4gJB2BwLuC8/ZQ== +i18next@25.8.12: + version "25.8.12" + resolved "https://registry.yarnpkg.com/i18next/-/i18next-25.8.12.tgz#17ec5a081b848c6a4b3c398c65f5336804977c67" + integrity sha512-hw59RF5QaH9i3l47hTXjeLLtzgVO8OtznlTJZbulmaLbz+itA1hIKWHTEiajY9W2SNPzvL8U5nTBVt7SsOGNRA== dependencies: "@babel/runtime" "^7.28.4"