FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
fix: Resolve white screen on dev - i18n and WebSocket issues
tilakpatel22684fdc90283d
diff --git a/fincept-terminal-desktop/bun.lock b/fincept-terminal-desktop/bun.lockindex 16d9a1754..65d87482d 100644--- a/fincept-terminal-desktop/bun.lock+++ b/fincept-terminal-desktop/bun.lock@@ -56,6 +56,7 @@"fyers-web-sdk-v3": "^1.3.1","i18next": "^25.7.1","i18next-browser-languagedetector": "^8.2.0",+ "i18next-http-backend": "^3.0.2","jmespath": "^0.16.0","jsonata": "^2.1.0","jsonpath": "^1.1.1",@@ -790,7 +791,7 @@"create-require": ["[email protected]", "", {}, "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ=="],- "cross-fetch": ["[email protected]", "", { "dependencies": { "node-fetch": "^2.7.0" } }, "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q=="],+ "cross-fetch": ["[email protected]", "", { "dependencies": { "node-fetch": "^2.6.12" } }, "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g=="],"crypto-browserify": ["[email protected]", "", { "dependencies": { "browserify-cipher": "^1.0.1", "browserify-sign": "^4.2.3", "create-ecdh": "^4.0.4", "create-hash": "^1.2.0", "create-hmac": "^1.1.7", "diffie-hellman": "^5.0.3", "hash-base": "~3.0.4", "inherits": "^2.0.4", "pbkdf2": "^3.1.2", "public-encrypt": "^4.0.3", "randombytes": "^2.1.0", "randomfill": "^1.0.4" } }, "sha512-r4ESw/IlusD17lgQi1O20Fa3qNnsckR126TdUuBgAu7GBYSIPvdNyONd3Zrxh0xCwA4+6w/TDArBPsMvhur+KQ=="],@@ -1020,6 +1021,8 @@"i18next-browser-languagedetector": ["[email protected]", "", { "dependencies": { "@babel/runtime": "^7.23.2" } }, "sha512-P+3zEKLnOF0qmiesW383vsLdtQVyKtCNA9cjSoKCppTKPQVfKd2W8hbVo5ZhNJKDqeM7BOcvNoKJOjpHh4Js9g=="],+ "i18next-http-backend": ["[email protected]", "", { "dependencies": { "cross-fetch": "4.0.0" } }, "sha512-PdlvPnvIp4E1sYi46Ik4tBYh/v/NbYfFFgTjkwFl0is8A18s7/bx9aXqsrOax9WUbeNS6mD2oix7Z0yGGf6m5g=="],+"ibm-cloud-sdk-core": ["[email protected]", "", { "dependencies": { "@types/debug": "^4.1.12", "@types/node": "^18.19.80", "@types/tough-cookie": "^4.0.0", "axios": "^1.12.2", "camelcase": "^6.3.0", "debug": "^4.3.4", "dotenv": "^16.4.5", "extend": "3.0.2", "file-type": "16.5.4", "form-data": "^4.0.4", "isstream": "0.1.2", "jsonwebtoken": "^9.0.2", "mime-types": "2.1.35", "retry-axios": "^2.6.0", "tough-cookie": "^4.1.3" } }, "sha512-2zqgHp3W2meNJtommmgnZdouj2dPK4AbNQ4QN7BjNpfsQhWNO4eZbUYo2iD2V3I2k9mAsCjzsM87YuE+mu8gfA=="],"iconv-lite": ["[email protected]", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],@@ -1698,6 +1701,8 @@"escodegen/esprima": ["[email protected]", "", { "bin": { "esparse": "./bin/esparse.js", "esvalidate": "./bin/esvalidate.js" } }, "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="],+ "graphql-request/cross-fetch": ["[email protected]", "", { "dependencies": { "node-fetch": "^2.7.0" } }, "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q=="],+"htmlparser2/entities": ["[email protected]", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="],"ibm-cloud-sdk-core/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg=="],diff --git a/fincept-terminal-desktop/package.json b/fincept-terminal-desktop/package.jsonindex 67ccd374b..2032a3b20 100644--- a/fincept-terminal-desktop/package.json+++ b/fincept-terminal-desktop/package.json@@ -62,6 +62,7 @@"fyers-web-sdk-v3": "^1.3.1","i18next": "^25.7.1","i18next-browser-languagedetector": "^8.2.0",+ "i18next-http-backend": "^3.0.2","jmespath": "^0.16.0","jsonata": "^2.1.0","jsonpath": "^1.1.1",diff --git a/fincept-terminal-desktop/src/i18n/config.ts b/fincept-terminal-desktop/src/i18n/config.tsindex b91f595cf..75c0acb5b 100644--- a/fincept-terminal-desktop/src/i18n/config.ts+++ b/fincept-terminal-desktop/src/i18n/config.ts@@ -4,33 +4,20 @@import i18next from 'i18next';import { initReactI18next } from 'react-i18next';import LanguageDetector from 'i18next-browser-languagedetector';--// Import translation files-import enCommon from '../../public/locales/en/common.json';-import enAuth from '../../public/locales/en/auth.json';-import enDashboard from '../../public/locales/en/dashboard.json';-import enSettings from '../../public/locales/en/settings.json';-import enTabs from '../../public/locales/en/tabs.json';--const resources = {- en: {- common: enCommon,- auth: enAuth,- dashboard: enDashboard,- settings: enSettings,- tabs: enTabs,- },- // Other languages will be added here-};+import Backend from 'i18next-http-backend';i18next+ .use(Backend) // Load translations from public folder.use(LanguageDetector) // Auto-detect user language.use(initReactI18next) // Pass i18n to react-i18next.init({- resources,fallbackLng: 'en',supportedLngs: ['en', 'es', 'fr', 'de', 'zh', 'ja', 'hi', 'ar', 'pt', 'ru', 'bn', 'ko', 'tr', 'it', 'id', 'vi', 'th', 'pl', 'uk', 'ro'],+ backend: {+ loadPath: '/locales/{{lng}}/{{ns}}.json',+ },+detection: {order: ['localStorage', 'navigator'],caches: ['localStorage'],diff --git a/fincept-terminal-desktop/vite.config.ts b/fincept-terminal-desktop/vite.config.tsindex 3a646e7fc..36d700c27 100644--- a/fincept-terminal-desktop/vite.config.ts+++ b/fincept-terminal-desktop/vite.config.ts@@ -20,7 +20,7 @@ export default defineConfig({},},optimizeDeps: {- exclude: ['@mapbox/node-pre-gyp', 'mock-aws-s3', 'aws-sdk', 'nock', 'ccxt'],+ exclude: ['@mapbox/node-pre-gyp', 'mock-aws-s3', 'aws-sdk', 'nock', 'ccxt', 'ws'],esbuildOptions: {define: {global: 'globalThis'@@ -35,6 +35,7 @@ export default defineConfig({rollupOptions: {external: ['ccxt',+ 'ws','http-proxy-agent','https-proxy-agent','socks-proxy-agent',