Files
WeKnora/frontend/package.json
Aleksandr da640d1d33 Feature/add multilingual support (#384)
* feat: add multilingual support (English and Russian)

- Add i18n infrastructure with vue-i18n
- Implement language switcher component
- Add Russian (ru-RU) and English (en-US) translations
- Configure TDesign locale for proper UI component translation
- Replace hardcoded Chinese strings with i18n keys
- Support dynamic language switching in all components
- Add translations for all UI elements including:
  - Menu items and navigation
  - Knowledge base management
  - Chat interface
  - Settings and initialization
  - Authentication pages
  - Separator options in document splitting

This enables users to use the application in Chinese, English, or Russian.

* chore: add vue-i18n dependency and fix Input-field i18n integration

- Add vue-i18n package to frontend dependencies
- Fix Input-field component i18n integration for multilingual support

* chore: add PROGRESS_RU.md to .gitignore

- Exclude personal progress tracking file from git

* rearrange the order of the multilingual languages: Chinese, English, Russian

* Delete docker-compose.yml

* Replaced hardcoded messages with the t() function in the following files:  all error messages, 14 console.error ,messages session creation messages
, login/registration errors

* fix: restore docker-compose.yml and update .gitignore

* restore docker-compose.yml latest

* add multilingual support
2025-11-05 12:32:16 +08:00

52 lines
1.2 KiB
JSON

{
"name": "knowledage-base",
"version": "0.1.3",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build-with-types": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --build"
},
"dependencies": {
"@microsoft/fetch-event-source": "^2.0.1",
"@types/dompurify": "^3.0.5",
"axios": "^1.8.4",
"dompurify": "^3.2.6",
"marked": "^5.1.2",
"pagefind": "^1.1.1",
"pinia": "^3.0.1",
"tdesign-icons-vue-next": "^0.4.1",
"tdesign-vue-next": "^1.11.5",
"vue": "^3.5.13",
"vue-i18n": "^9.9.0",
"vue-router": "^4.5.0",
"webpack": "^5.94.0"
},
"devDependencies": {
"@tsconfig/node22": "^22.0.1",
"@types/marked": "^5.0.2",
"@types/node": "^22.14.0",
"@vitejs/plugin-vue": "6.0.0",
"@vitejs/plugin-vue-jsx": "5.0.1",
"@vue/tsconfig": "^0.7.0",
"less": "^4.3.0",
"less-loader": "^12.2.0",
"npm-run-all2": "^7.0.2",
"typescript": "~5.8.0",
"vite": "7.0.4",
"vue-tsc": "^2.2.8"
},
"overrides": {
"lightningcss": "none",
"esbuild": "^0.25.0"
},
"resolutions": {
"lightningcss": "none",
"esbuild": "^0.25.0"
}
}