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:
@@ -922,7 +922,7 @@
|
||||
"addedToday": "Heute hinzugefuegt",
|
||||
"documentsTitle": "Dokumente",
|
||||
"documentsFromArchive": "Dokumente aus dem ecoDMS Archiv",
|
||||
"title": "Titel",
|
||||
"documentTitle": "Titel",
|
||||
"classification": "Klassifikation",
|
||||
"tags": "Tags",
|
||||
"size": "Groesse",
|
||||
|
||||
@@ -922,7 +922,7 @@
|
||||
"addedToday": "Added today",
|
||||
"documentsTitle": "Documents",
|
||||
"documentsFromArchive": "Documents from the ecoDMS archive",
|
||||
"title": "Title",
|
||||
"documentTitle": "Title",
|
||||
"classification": "Classification",
|
||||
"tags": "Tags",
|
||||
"size": "Size",
|
||||
|
||||
@@ -220,7 +220,7 @@ export function GembaDocsContent({ locale }: GembaDocsContentProps) {
|
||||
<Table>
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>{t('title')}</TableHead>
|
||||
<TableHead>{t('documentTitle')}</TableHead>
|
||||
<TableHead>{t('type')}</TableHead>
|
||||
<TableHead>Status</TableHead>
|
||||
<TableHead>{t('department')}</TableHead>
|
||||
|
||||
@@ -115,7 +115,7 @@ export function SkillMatrixOverviewContent({ locale }: SkillMatrixOverviewConten
|
||||
{/* Header */}
|
||||
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
|
||||
<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>
|
||||
</div>
|
||||
<Button className="gap-2">
|
||||
@@ -306,7 +306,7 @@ function DepartmentCard({ department, locale, t }: DepartmentCardProps) {
|
||||
<TrendIcon className="h-4 w-4" />
|
||||
<span>{t(`skillMatrix.trend.${department.trend}`)}</span>
|
||||
</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 className="mt-3 pt-3 border-t">
|
||||
|
||||
@@ -8,19 +8,19 @@
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
"require": "./dist/index.js"
|
||||
},
|
||||
"./types": {
|
||||
"types": "./dist/types/index.d.ts",
|
||||
"import": "./dist/types/index.mjs",
|
||||
"require": "./dist/types/index.js",
|
||||
"types": "./dist/types/index.d.ts"
|
||||
"require": "./dist/types/index.js"
|
||||
},
|
||||
"./utils": {
|
||||
"types": "./dist/utils/index.d.ts",
|
||||
"import": "./dist/utils/index.mjs",
|
||||
"require": "./dist/utils/index.js",
|
||||
"types": "./dist/utils/index.d.ts"
|
||||
"require": "./dist/utils/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user