diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 2b8ef43bc..df2030ebd 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -520,5 +520,7 @@ "noStatus": "No status", "actionPlanHelpText": "Separated by status and sorted by eta", "matchingRequirements": "Matching requirements", - "asZIP": "as ZIP" + "asZIP": "as ZIP", + "incoming": "Incoming", + "outdated": "Outdated" } diff --git a/frontend/src/lib/components/ModelTable/ModelTable.svelte b/frontend/src/lib/components/ModelTable/ModelTable.svelte index 5a91077d1..404366bc8 100644 --- a/frontend/src/lib/components/ModelTable/ModelTable.svelte +++ b/frontend/src/lib/components/ModelTable/ModelTable.svelte @@ -243,7 +243,13 @@ {value.str ?? '-'} {/if} {:else if value && value.hexcolor} -

{value.name ?? value.str ?? '-'}

+

+ {#if localItems(languageTag())[toCamelCase(value.name ?? value.str ?? '-')]} + {localItems(languageTag())[toCamelCase(value.name ?? value.str ?? '-')]} + {:else} + {value.name ?? value.str ?? '-'} + {/if} +

{:else if ISO_8601_REGEX.test(value)} {formatDateOrDateTime(value, languageTag())} {:else} diff --git a/frontend/src/lib/utils/locales.ts b/frontend/src/lib/utils/locales.ts index 2381befa0..cd46ede82 100644 --- a/frontend/src/lib/utils/locales.ts +++ b/frontend/src/lib/utils/locales.ts @@ -337,7 +337,10 @@ export function localItems(languageTag: string): LocalItems { }), actionPlan: m.actionPlan({ languageTag: languageTag }), matchingRequirements: m.matchingRequirements({ languageTag: languageTag }), - remediationPlan: m.remediationPlan({ languageTag: languageTag }) + remediationPlan: m.remediationPlan({ languageTag: languageTag }), + incoming: m.incoming({ languageTag: languageTag }), + today: m.today({ languageTag: languageTag }), + outdated: m.outdated({ languageTag: languageTag }), }; return LOCAL_ITEMS; }