({
return (
- {t('ux_editor.options.codelist_referenceId.description')}
+ {t('ux_editor.options.code_list_referenceId.description')}
- {t('ux_editor.options.codelist_referenceId.description_details')}
+ {t('ux_editor.options.code_list_referenceId.description_details')}
{
await openModal(user);
const textBox = screen.getByRole('textbox', {
- name: textMock('ux_editor.modal_properties_code_list_item_description', { number: 2 }),
+ name: textMock('code_list_editor.description_item', { number: 2 }),
});
await user.type(textBox, 'test');
@@ -106,7 +106,7 @@ describe('OptionListEditor', () => {
await openModal(user);
const textBox = screen.getByRole('textbox', {
- name: textMock('ux_editor.modal_properties_code_list_item_description', { number: 2 }),
+ name: textMock('code_list_editor.description_item', { number: 2 }),
});
await user.type(textBox, 'test');
diff --git a/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/EditOptionList/OptionListEditor.tsx b/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/EditOptionList/OptionListEditor.tsx
index 7b89510492d..8642850f67a 100644
--- a/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/EditOptionList/OptionListEditor.tsx
+++ b/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/EditOptionList/OptionListEditor.tsx
@@ -82,7 +82,7 @@ function OptionListEditorModal({
className={classes.editOptionTabModal}
contentClassName={classes.content}
closeButtonTitle={t('general.close')}
- heading={t('ux_editor.modal_add_options_codelist')}
+ heading={t('ux_editor.modal_add_options_code_list')}
onBeforeClose={handleClose}
onInteractOutside={handleClose}
>
diff --git a/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/OptionTabs.tsx b/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/OptionTabs.tsx
index 427f43a4479..fd4bdf17960 100644
--- a/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/OptionTabs.tsx
+++ b/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/OptionTabs.tsx
@@ -52,7 +52,7 @@ export const OptionTabs = ({
>
- {t('ux_editor.options.tab_codelist')}
+ {t('ux_editor.options.tab_code_list')}
{t('ux_editor.options.tab_manual')}
@@ -102,7 +102,7 @@ const RenderManualOptions = ({
if (areLayoutOptionsSupported === false) {
return (
- {t('ux_editor.options.codelist_only')}
+ {t('ux_editor.options.code_list_only')}
);
}
diff --git a/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/hooks/useOptionListEditorTexts.ts b/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/hooks/useOptionListEditorTexts.ts
index 469582e34de..c56f5f583aa 100644
--- a/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/hooks/useOptionListEditorTexts.ts
+++ b/frontend/packages/ux-editor/src/components/config/editModal/EditOptions/OptionTabs/hooks/useOptionListEditorTexts.ts
@@ -5,25 +5,22 @@ export const useOptionListEditorTexts = (): CodeListEditorTexts => {
const { t } = useTranslation();
return {
- add: t('ux_editor.modal_new_option'),
- codeList: t('ux_editor.modal_add_options_codelist'),
- delete: t('general.delete'),
- deleteItem: (number: number) =>
- t('ux_editor.modal_properties_code_list_delete_item', { number }),
- description: t('general.description'),
- emptyCodeList: t('ux_editor.modal_properties_code_list_empty'),
+ add: t('code_list_editor.add_option'),
+ delete: t('code_list_editor.column_title_delete'),
+ value: t('code_list_editor.column_title_value'),
+ label: t('code_list_editor.column_title_label'),
+ description: t('code_list_editor.column_title_description'),
+ helpText: t('code_list_editor.column_title_help_text'),
+ deleteItem: (number: number) => t('code_list_editor.delete_code_list_item', { number }),
+ itemValue: (number: number) => t('code_list_editor.value_item', { number }),
+ itemLabel: (number: number) => t('code_list_editor.label_item', { number }),
+ itemDescription: (number: number) => t('code_list_editor.description_item', { number }),
+ itemHelpText: (number: number) => t('code_list_editor.help_text_item', { number }),
+ codeList: t('code_list_editor.legend'),
+ emptyCodeList: t('code_list_editor.empty'),
valueErrors: {
- duplicateValue: t('ux_editor.radios_error_DuplicateValues'),
+ duplicateValue: t('code_list_editor.duplicate_values_error'),
},
- generalError: t('ux_editor.modal_properties_code_list_general_error'),
- helpText: t('ux_editor.modal_properties_textResourceBindings_help'),
- itemDescription: (number: number) =>
- t('ux_editor.modal_properties_code_list_item_description', { number }),
- itemHelpText: (number: number) =>
- t('ux_editor.modal_properties_code_list_item_helpText', { number }),
- itemLabel: (number: number) => t('ux_editor.modal_properties_code_list_item_label', { number }),
- itemValue: (number: number) => t('ux_editor.modal_properties_code_list_item_value', { number }),
- label: t('ux_editor.modal_properties_textResourceBindings_title'),
- value: t('general.value'),
+ generalError: t('code_list_editor.general_error'),
};
};