feat(phase2): localization EN/RU + additional widget types

- Add svelte-i18n with 224 translation keys (English + Russian)
- Language switcher in header (EN/RU toggle, persists to localStorage)
- Extract all hardcoded strings from 37 component/page files
- Add 4 new widget types: Bookmark, Note (markdown), Embed (iframe), Status
- WidgetRenderer dispatches by type, WidgetGrid supports full-width widgets
- Type-specific config forms in board editor
- Install marked for markdown rendering
This commit is contained in:
2026-03-24 23:18:05 +03:00
parent bf4e5089ee
commit 477c0e4d52
52 changed files with 1776 additions and 395 deletions
+37
View File
@@ -16,6 +16,7 @@
"clsx": "^2.1.0",
"jsonwebtoken": "^9.0.2",
"lucide-svelte": "^0.469.0",
"marked": "^17.0.5",
"node-cron": "^3.0.3",
"openid-client": "^6.8.2",
"simple-icons": "^13.0.0",
@@ -33,6 +34,7 @@
"@testing-library/svelte": "^5.2.0",
"@types/bcryptjs": "^2.4.6",
"@types/jsonwebtoken": "^9.0.7",
"@types/marked": "^6.0.0",
"@types/node-cron": "^3.0.11",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.0",
@@ -1774,6 +1776,16 @@
"@types/node": "*"
}
},
"node_modules/@types/marked": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@types/marked/-/marked-6.0.0.tgz",
"integrity": "sha512-jmjpa4BwUsmhxcfsgUit/7A9KbrC48Q0q8KvnY107ogcjGgTFDlIL3RpihNpx2Mu1hM4mdFQjoVc4O6JoGKHsA==",
"deprecated": "This is a stub types definition. marked provides its own type definitions, so you do not need this installed.",
"dev": true,
"dependencies": {
"marked": "*"
}
},
"node_modules/@types/ms": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
@@ -3919,6 +3931,17 @@
"@jridgewell/sourcemap-codec": "^1.5.5"
}
},
"node_modules/marked": {
"version": "17.0.5",
"resolved": "https://registry.npmjs.org/marked/-/marked-17.0.5.tgz",
"integrity": "sha512-6hLvc0/JEbRjRgzI6wnT2P1XuM1/RrrDEX0kPt0N7jGm1133g6X7DlxFasUIx+72aKAr904GTxhSLDrd5DIlZg==",
"bin": {
"marked": "bin/marked.js"
},
"engines": {
"node": ">= 20"
}
},
"node_modules/memoize-weak": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/memoize-weak/-/memoize-weak-1.0.2.tgz",
@@ -7134,6 +7157,15 @@
"@types/node": "*"
}
},
"@types/marked": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@types/marked/-/marked-6.0.0.tgz",
"integrity": "sha512-jmjpa4BwUsmhxcfsgUit/7A9KbrC48Q0q8KvnY107ogcjGgTFDlIL3RpihNpx2Mu1hM4mdFQjoVc4O6JoGKHsA==",
"dev": true,
"requires": {
"marked": "*"
}
},
"@types/ms": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
@@ -8609,6 +8641,11 @@
"@jridgewell/sourcemap-codec": "^1.5.5"
}
},
"marked": {
"version": "17.0.5",
"resolved": "https://registry.npmjs.org/marked/-/marked-17.0.5.tgz",
"integrity": "sha512-6hLvc0/JEbRjRgzI6wnT2P1XuM1/RrrDEX0kPt0N7jGm1133g6X7DlxFasUIx+72aKAr904GTxhSLDrd5DIlZg=="
},
"memoize-weak": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/memoize-weak/-/memoize-weak-1.0.2.tgz",