From 9973ee36799561dbec18f2802c0d407807113fa6 Mon Sep 17 00:00:00 2001 From: Mikael Brevik Date: Tue, 10 Dec 2024 20:30:08 +0100 Subject: [PATCH] fix: update competancy fields --- messages/en.json | 5 +++-- messages/no.json | 5 +++-- messages/se.json | 5 +++-- src/components/employeeCard/EmployeeCard.tsx | 2 +- src/components/sections/employees/EmployeeList.tsx | 5 +++-- src/types/employees.ts | 5 +++-- 6 files changed, 16 insertions(+), 11 deletions(-) diff --git a/messages/en.json b/messages/en.json index 79d0c7720..e94ee10f1 100644 --- a/messages/en.json +++ b/messages/en.json @@ -53,10 +53,11 @@ "consultants": "consultants", "location": "Location", "all": "All", - "Project Management": "Project Management", "Design": "Design", "Utvikling": "Development", - "Administasjon": "Administration", + "Ledelse": " ", + "Prosjekt- og produktledelse": "Project and product management", + "Strategi": "Strategy", "field": "Field", "showMore": "Show all" }, diff --git a/messages/no.json b/messages/no.json index 5e66390dd..2dfdb56e9 100644 --- a/messages/no.json +++ b/messages/no.json @@ -52,10 +52,11 @@ "consultants": "konsulenter", "location": "Lokasjon", "all": "Alle", - "Project Management": "Prosjektledelse", "Design": "Design", "Utvikling": "Utvikling", - "Administasjon": "Administrasjon", + "Ledelse": "Ledelse", + "Prosjekt- og produktledelse": "Prosjekt- og produktledelse", + "Strategi": "Strategi", "field": "Fag", "showMore": "Vis alle" }, diff --git a/messages/se.json b/messages/se.json index 3f865a823..aad842966 100644 --- a/messages/se.json +++ b/messages/se.json @@ -52,10 +52,11 @@ "consultants": "konsulter", "location": "Kontor", "all": "Alla", - "Project Management": "Projektledning", + "Prosjekt- og produktledelse": "Produkt- och projektledning", "Design": "Design", "Utvikling": "Utveckling", - "Administasjon": "Administration", + "Ledelse": "Ledelse", + "Strategi": "Strategi", "field": "Fält", "showMore": "Vis alla" }, diff --git a/src/components/employeeCard/EmployeeCard.tsx b/src/components/employeeCard/EmployeeCard.tsx index 0573f789e..c0c0b141b 100644 --- a/src/components/employeeCard/EmployeeCard.tsx +++ b/src/components/employeeCard/EmployeeCard.tsx @@ -65,7 +65,7 @@ export default function EmployeeCard({ key={competence} as="span" > - {t(competence)} + {t.has(competence) ? t(competence) : competence} )) )} diff --git a/src/components/sections/employees/EmployeeList.tsx b/src/components/sections/employees/EmployeeList.tsx index 48f463f29..aad54f8d9 100644 --- a/src/components/sections/employees/EmployeeList.tsx +++ b/src/components/sections/employees/EmployeeList.tsx @@ -17,9 +17,10 @@ import { EmployeeListSkeleton } from "./EmployeeSkeleton"; const competences: Competence[] = [ "Utvikling", - "Administasjon", + "Ledelse", "Design", - "Project Management", + "Prosjekt- og produktledelse", + "Strategi", ]; export interface EmployeesProps { diff --git a/src/types/employees.ts b/src/types/employees.ts index 9031f97ac..1a6aa6599 100644 --- a/src/types/employees.ts +++ b/src/types/employees.ts @@ -17,10 +17,11 @@ export function isChewbaccaEmployeesResponse( } export type Competence = - | "Project Management" | "Design" | "Utvikling" - | "Administasjon"; + | "Prosjekt- og produktledelse" + | "Ledelse" + | "Strategi"; export interface ChewbaccaEmployee { email?: string | null;