✏️(frontend) replace Word / Open Office by Docx

Replace the naming of the select export
options from Word / Open Office to Docx.
This commit is contained in:
Anthony LC
2025-01-30 11:16:54 +01:00
committed by Anthony LC
parent 929a50b573
commit 0dae35dab1
2 changed files with 4 additions and 8 deletions

View File

@@ -29,9 +29,7 @@ test.describe('Doc Export', () => {
.first(),
).toBeVisible();
await expect(
page.getByText(
'Upload your docs to a Microsoft Word, Open Office or PDF document',
),
page.getByText('Download your document in a .docx or .pdf format.'),
).toBeVisible();
await expect(
page.getByRole('combobox', { name: 'Template' }),
@@ -95,7 +93,7 @@ test.describe('Doc Export', () => {
.click();
await page.getByRole('combobox', { name: 'Format' }).click();
await page.getByRole('option', { name: 'Word / Open Office' }).click();
await page.getByRole('option', { name: 'Docx' }).click();
await page
.getByRole('button', {

View File

@@ -179,9 +179,7 @@ export const ModalExport = ({ onClose, doc }: ModalExportProps) => {
$gap="1rem"
>
<Text $variation="600" $size="sm">
{t(
'Upload your docs to a Microsoft Word, Open Office or PDF document.',
)}
{t('Download your document in a .docx or .pdf format.')}
</Text>
<Select
clearable={false}
@@ -197,7 +195,7 @@ export const ModalExport = ({ onClose, doc }: ModalExportProps) => {
fullWidth
label={t('Format')}
options={[
{ label: t('Word / Open Office'), value: DocDownloadFormat.DOCX },
{ label: t('Docx'), value: DocDownloadFormat.DOCX },
{ label: t('PDF'), value: DocDownloadFormat.PDF },
]}
value={format}