fix: resolve 3 i18n errors and fix shared package exports ordering

- Skill Matrix: use correct nested key `skillMatrix.title` instead of
  `skillMatrix` which resolved to the full object
- Skill Matrix: use `skillMatrix.trend.label` instead of
  `skillMatrix.trend` which resolved to the trend object
- Integrations: rename duplicate `title` key to `documentTitle` in
  de.json/en.json to prevent the ecoDMS column header from overriding
  the page title ("Titel" instead of "Integrationen")
- Shared package: move `types` condition before `import`/`require` in
  exports field to fix TypeScript type resolution

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 12:58:06 +01:00
parent fe305f6fc8
commit 20d6795694
5 changed files with 11 additions and 11 deletions

View File

@@ -922,7 +922,7 @@
"addedToday": "Heute hinzugefuegt", "addedToday": "Heute hinzugefuegt",
"documentsTitle": "Dokumente", "documentsTitle": "Dokumente",
"documentsFromArchive": "Dokumente aus dem ecoDMS Archiv", "documentsFromArchive": "Dokumente aus dem ecoDMS Archiv",
"title": "Titel", "documentTitle": "Titel",
"classification": "Klassifikation", "classification": "Klassifikation",
"tags": "Tags", "tags": "Tags",
"size": "Groesse", "size": "Groesse",

View File

@@ -922,7 +922,7 @@
"addedToday": "Added today", "addedToday": "Added today",
"documentsTitle": "Documents", "documentsTitle": "Documents",
"documentsFromArchive": "Documents from the ecoDMS archive", "documentsFromArchive": "Documents from the ecoDMS archive",
"title": "Title", "documentTitle": "Title",
"classification": "Classification", "classification": "Classification",
"tags": "Tags", "tags": "Tags",
"size": "Size", "size": "Size",

View File

@@ -220,7 +220,7 @@ export function GembaDocsContent({ locale }: GembaDocsContentProps) {
<Table> <Table>
<TableHeader> <TableHeader>
<TableRow> <TableRow>
<TableHead>{t('title')}</TableHead> <TableHead>{t('documentTitle')}</TableHead>
<TableHead>{t('type')}</TableHead> <TableHead>{t('type')}</TableHead>
<TableHead>Status</TableHead> <TableHead>Status</TableHead>
<TableHead>{t('department')}</TableHead> <TableHead>{t('department')}</TableHead>

View File

@@ -115,7 +115,7 @@ export function SkillMatrixOverviewContent({ locale }: SkillMatrixOverviewConten
{/* Header */} {/* Header */}
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"> <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
<div> <div>
<h1 className="text-3xl font-bold tracking-tight">{t('skillMatrix')}</h1> <h1 className="text-3xl font-bold tracking-tight">{t('skillMatrix.title')}</h1>
<p className="text-muted-foreground">{t('skillMatrix.description')}</p> <p className="text-muted-foreground">{t('skillMatrix.description')}</p>
</div> </div>
<Button className="gap-2"> <Button className="gap-2">
@@ -306,7 +306,7 @@ function DepartmentCard({ department, locale, t }: DepartmentCardProps) {
<TrendIcon className="h-4 w-4" /> <TrendIcon className="h-4 w-4" />
<span>{t(`skillMatrix.trend.${department.trend}`)}</span> <span>{t(`skillMatrix.trend.${department.trend}`)}</span>
</div> </div>
<p className="text-xs text-muted-foreground">{t('skillMatrix.trend')}</p> <p className="text-xs text-muted-foreground">{t('skillMatrix.trend.label')}</p>
</div> </div>
</div> </div>
<div className="mt-3 pt-3 border-t"> <div className="mt-3 pt-3 border-t">

View File

@@ -8,19 +8,19 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs", "import": "./dist/index.mjs",
"require": "./dist/index.js", "require": "./dist/index.js"
"types": "./dist/index.d.ts"
}, },
"./types": { "./types": {
"types": "./dist/types/index.d.ts",
"import": "./dist/types/index.mjs", "import": "./dist/types/index.mjs",
"require": "./dist/types/index.js", "require": "./dist/types/index.js"
"types": "./dist/types/index.d.ts"
}, },
"./utils": { "./utils": {
"types": "./dist/utils/index.d.ts",
"import": "./dist/utils/index.mjs", "import": "./dist/utils/index.mjs",
"require": "./dist/utils/index.js", "require": "./dist/utils/index.js"
"types": "./dist/utils/index.d.ts"
} }
}, },
"scripts": { "scripts": {