SurfSense/surfsense_web
SohamBhattacharjee2003 d5f46dd7de perf: implement dynamic locale loading and remove unused zod import
Replace static imports of all 5 locale JSON files with dynamic imports.
Only English is bundled by default, other locales (es, hi, pt, zh) load
on demand when the user switches languages.

Also removes unused 'set' import from zod (line 5) that was dragging
Zod surface into this module unnecessarily.

Changes:
- Removed static imports for es, hi, pt, zh locale files
- Removed unused zod import
- Added loadMessages() function for dynamic locale loading
- Updated setLocale() to load messages asynchronously
- Added useEffect to load non-English locale on mount if stored

Benefits:
- Only active locale's JSON in initial bundle (English default)
- 80% reduction in locale data in initial bundle
- Other locale files load on demand (~50-100KB each)
- Removed unnecessary zod dependency from module
- Locale switching still works seamlessly
- Faster initial page load

Fixes #1143
2026-04-08 06:39:37 +05:30
..
app Merge branch 'dev' into fix/replace-transition-all-with-specific-transitions 2026-04-08 05:38:30 +05:30
atoms Add dynamic vision model list from OpenRouter with combobox selector 2026-04-07 23:39:52 +02:00
changelog/content revert changelog - keep historical ElectricSQL reference 2026-03-24 17:08:21 +02:00
components refactor: remove unused drizzle-orm import from markdown-viewer 2026-04-08 06:36:50 +05:30
content/docs style: simplify LLM model terminology in UI 2026-04-02 10:11:35 +05:30
contexts perf: implement dynamic locale loading and remove unused zod import 2026-04-08 06:39:37 +05:30
contracts chore: ran linting 2026-04-08 05:20:03 +05:30
hooks feat: enhance keyboard shortcut management and improve app responsiveness 2026-04-07 00:43:40 -07:00
i18n chore: linting 2026-03-27 03:17:05 -07:00
lib chore: ran linting 2026-04-08 05:20:03 +05:30
messages Add Vision Models tab to settings dialog with i18n 2026-04-07 19:29:24 +02:00
public Merge pull request #1164 from AnishSarkar22/feat/azure-ocr 2026-04-07 16:58:19 -07:00
types feat: add active search space management to Electron API and UI 2026-04-07 04:45:48 -07:00
zero feat: add folder management features including creation, deletion, and organization of documents within folders 2026-03-27 01:39:15 -07:00
.cursorrules feat: monorepo 2025-04-07 23:47:06 -07:00
.dockerignore feat: frontend docker to use nextjs production build 2025-10-23 20:37:01 -07:00
.env.example refactor: make Azure Document Intelligence an internal LLAMACLOUD accelerator instead of a standalone ETL service 2026-04-08 03:26:24 +05:30
.gitignore chore: remove connector status config from .gitignore 2026-01-12 14:09:45 -08:00
biome.json chore: update biome configuration and dependencies to Biome version 2.4.6, enhancing compatibility and functionality 2026-03-07 12:52:05 +05:30
components.json chore: ran linting 2026-02-17 12:47:39 +05:30
docker-entrypoint.js format: auto-fix via pnpm format:fix 2026-03-24 16:07:28 +02:00
docker-entrypoint.sh feat: add Docker configuration files and installation script for SurfSense 2026-02-24 22:45:37 +05:30
Dockerfile feat: add Zero infra — docker-compose, env vars, Dockerfile, CI workflows 2026-03-23 18:27:18 +02:00
drizzle.config.ts chore: biome checks 2025-10-15 14:38:26 -07:00
eslint.config.mjs Biome: fixes for eslint config 2025-07-27 11:47:38 -07:00
instrumentation-client.ts fix: update PostHog configuration for improved tracking 2026-03-11 23:18:09 -07:00
instrumentation.ts feat: enhance error handling with PostHog integration 2026-03-12 01:28:39 -07:00
LICENSE feat: monorepo 2025-04-07 23:47:06 -07:00
mdx-components.tsx perf(images): add sizes prop to improve Next.js image loading 2026-04-03 22:11:21 +07:00
next.config.ts feat: add experimental package import optimization configuration 2026-04-01 13:07:27 +02:00
package.json feat: bumped version to 0.0.14 2026-03-31 21:45:18 -07:00
pnpm-lock.yaml feat: add folder management features including creation, deletion, and organization of documents within folders 2026-03-27 01:39:15 -07:00
postcss.config.mjs Initial formatting using biome 2025-07-27 10:05:37 -07:00
source.config.ts feat: released 0.0.9 changelog 2025-12-24 18:03:22 -08:00
svgr.d.ts chore: ran linting 2026-02-10 19:06:21 +05:30
tailwind.config.js feat: enhance UI components with new border radius and tooltip features 2026-01-20 17:35:08 +05:30
tsconfig.json feat: old chat to new-chat with persistance 2025-12-21 16:32:55 -08:00