Skip to content

Commit

Permalink
Reuse established text keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ErlingHauan committed Oct 30, 2024
1 parent 01b6e3b commit ce873ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 0 additions & 3 deletions frontend/language/src/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -1633,9 +1633,6 @@
"ux_editor.options.tab_codelist": "Velg kodeliste",
"ux_editor.options.tab_manual": "Sett opp egne alternativer",
"ux_editor.options.tab_referenceId": "Angi referanse-ID",
"ux_editor.options_text_description": "Beskrivelse",
"ux_editor.options_text_help_text": "Hjelpetekst",
"ux_editor.options_text_label": "Ledetekst",
"ux_editor.page": "Side",
"ux_editor.page_config_pdf_abort_converting_page_to_pdf": "Avbryt å gjøre om siden til PDF",
"ux_editor.page_config_pdf_card_heading": "Siden skal være en PDF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ export const useCodeListEditorTexts = () => {
add: t('ux_editor.modal_new_option'),
codeList: t('ux_editor.modal_add_options_codelist'),
delete: t('general.delete'),
deleteItem: (number) => t('ux_editor.modal_properties_code_list_delete_item', { number }),
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'),
helpText: t('ux_editor.options_text_help_text'),
itemDescription: (number) =>
helpText: t('ux_editor.modal_properties_textResourceBindings_help'),
itemDescription: (number: number) =>
t('ux_editor.modal_properties_code_list_item_description', { number }),
itemHelpText: (number) => t('ux_editor.modal_properties_code_list_item_helpText', { number }),
itemLabel: (number) => t('ux_editor.modal_properties_code_list_item_label', { number }),
itemValue: (number) => t('ux_editor.modal_properties_code_list_item_value', { number }),
label: t('ux_editor.options_text_label'),
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'),
};
};

0 comments on commit ce873ce

Please sign in to comment.