From ddad788984bcccbfbd8c0801f0df2c8d1c22746d Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Thu, 12 Oct 2023 09:29:51 +0200 Subject: [PATCH] refactor(admin): mark more fields as translatable --- libs/admin/common/src/types/form.types.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/admin/common/src/types/form.types.ts b/libs/admin/common/src/types/form.types.ts index 05be49ee8..26a6769a8 100644 --- a/libs/admin/common/src/types/form.types.ts +++ b/libs/admin/common/src/types/form.types.ts @@ -1,4 +1,5 @@ import {type Keyable} from '@myparcel-pdk/common'; +import {type Translation} from './language.types'; import {type AdminIcon} from './common.types'; interface BaseSelectOption { @@ -10,12 +11,12 @@ interface BaseSelectOption export interface SelectOptionWithLabel extends BaseSelectOption { - label: string; + label: Translation; } export interface SelectOptionWithPlainLabel extends BaseSelectOption { - plainLabel: string; + plainLabel: Translation; } export type SelectOptionValue = Keyable | boolean;