From 20d679569460aa9f9c840ab02d83ddc1f364f5ec Mon Sep 17 00:00:00 2001 From: Flexomatic81 Date: Thu, 12 Feb 2026 12:58:06 +0100 Subject: [PATCH] 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 --- apps/web/messages/de.json | 2 +- apps/web/messages/en.json | 2 +- .../(auth)/integrations/[type]/gembadocs-content.tsx | 2 +- .../skill-matrix/skill-matrix-overview-content.tsx | 4 ++-- packages/shared/package.json | 12 ++++++------ 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/web/messages/de.json b/apps/web/messages/de.json index 6b34eaf..47a0f26 100644 --- a/apps/web/messages/de.json +++ b/apps/web/messages/de.json @@ -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", diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index 07c2c9f..e13e3e3 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -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", diff --git a/apps/web/src/app/[locale]/(auth)/integrations/[type]/gembadocs-content.tsx b/apps/web/src/app/[locale]/(auth)/integrations/[type]/gembadocs-content.tsx index a14860e..22e4a71 100644 --- a/apps/web/src/app/[locale]/(auth)/integrations/[type]/gembadocs-content.tsx +++ b/apps/web/src/app/[locale]/(auth)/integrations/[type]/gembadocs-content.tsx @@ -220,7 +220,7 @@ export function GembaDocsContent({ locale }: GembaDocsContentProps) { - {t('title')} + {t('documentTitle')} {t('type')} Status {t('department')} diff --git a/apps/web/src/app/[locale]/(auth)/lean/skill-matrix/skill-matrix-overview-content.tsx b/apps/web/src/app/[locale]/(auth)/lean/skill-matrix/skill-matrix-overview-content.tsx index 59ab0fb..36d8a7d 100644 --- a/apps/web/src/app/[locale]/(auth)/lean/skill-matrix/skill-matrix-overview-content.tsx +++ b/apps/web/src/app/[locale]/(auth)/lean/skill-matrix/skill-matrix-overview-content.tsx @@ -115,7 +115,7 @@ export function SkillMatrixOverviewContent({ locale }: SkillMatrixOverviewConten {/* Header */}
-

{t('skillMatrix')}

+

{t('skillMatrix.title')}

{t('skillMatrix.description')}

-

{t('skillMatrix.trend')}

+

{t('skillMatrix.trend.label')}

diff --git a/packages/shared/package.json b/packages/shared/package.json index 44f1fdc..6b4d92c 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -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": {