🌐(frontend) update some translated messages
Slight cleanup of translations.
This commit is contained in:
@@ -56,18 +56,19 @@ export const Tag = ({ ...props }: TagContentProps) => {
|
||||
Partial<Record<TagContentProps['status'], string>>
|
||||
> = {
|
||||
domain: {
|
||||
pending: 'Domain pending validation by an administrator',
|
||||
enabled: 'Active domain',
|
||||
disabled: 'Disabled domain',
|
||||
failed: 'Domain error, contact an administrator',
|
||||
action_required:
|
||||
pending: t('Domain pending validation by an administrator'),
|
||||
enabled: t('Active domain'),
|
||||
disabled: t('Disabled domain'),
|
||||
failed: t('Domain error, contact an administrator'),
|
||||
action_required: t(
|
||||
'A configuration action from the domain manager (outside Régie) is required',
|
||||
),
|
||||
},
|
||||
mail: {
|
||||
pending: 'Email address pending validation by an administrator',
|
||||
enabled: 'Functional email address',
|
||||
failed: 'Email address error, contact an administrator',
|
||||
disabled: 'Disabled email address',
|
||||
pending: t('Email address pending validation by an administrator'),
|
||||
enabled: t('Functional email address'),
|
||||
failed: t('Email address error, contact an administrator'),
|
||||
disabled: t('Disabled email address'),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -125,8 +125,9 @@ export const ModalDomainAccessesManagement = ({
|
||||
title={
|
||||
<Box $align="left" $gap="1rem">
|
||||
<Text $size="small" $margin="none">
|
||||
{t('Droits d’administration de ')}
|
||||
{mailDomain.name}
|
||||
{t('Administration rights of {{name}}', {
|
||||
name: mailDomain.name,
|
||||
})}
|
||||
</Text>
|
||||
</Box>
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('ModalAddMailDomain', () => {
|
||||
const goToSecondStep = async () => {
|
||||
const user = userEvent.setup();
|
||||
await user.click(
|
||||
screen.getByRole('button', { name: /I have already domain/i }),
|
||||
screen.getByRole('button', { name: /I already have a domain/i }),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ export const MailDomainAccessesAction = ({
|
||||
setIsModalAccessOpen(true);
|
||||
}}
|
||||
>
|
||||
{t('Share rights')}
|
||||
{t('Access management')}
|
||||
</Button>
|
||||
)}
|
||||
</Box>
|
||||
|
||||
@@ -114,7 +114,7 @@ export const ModalAddMailDomain = ({
|
||||
),
|
||||
rightAction: (
|
||||
<Button data-testid="next_step" onClick={() => setStep(1)}>
|
||||
{t('I have already domain')}
|
||||
{t('I already have a domain')}
|
||||
</Button>
|
||||
),
|
||||
leftAction: (
|
||||
|
||||
@@ -122,7 +122,7 @@ export function MailBoxesView({ mailDomain }: { mailDomain: MailDomain }) {
|
||||
{t('New mail address')}
|
||||
</Button>
|
||||
) : (
|
||||
<Tooltip content="You don't have the correct access right">
|
||||
<Tooltip content={t("You don't have the correct access right")}>
|
||||
<div>
|
||||
<Button
|
||||
data-testid="button-new-mailbox"
|
||||
|
||||
@@ -55,7 +55,7 @@ const Page: NextPageWithLayout = () => {
|
||||
as="h2"
|
||||
$css="font-weight: 700; font-size: 1.5rem; margin-bottom: 20px;"
|
||||
>
|
||||
{t('Areas of the organization')}
|
||||
{t('Domains of the organization')}
|
||||
</Text>
|
||||
|
||||
<Box
|
||||
@@ -111,7 +111,7 @@ const Page: NextPageWithLayout = () => {
|
||||
{t('Add a mail domain')}
|
||||
</Button>
|
||||
) : (
|
||||
<Tooltip content="You don't have the correct access right">
|
||||
<Tooltip content={t("You don't have the correct access right")}>
|
||||
<div>
|
||||
<Button
|
||||
data-testid="button-new-domain"
|
||||
|
||||
@@ -47,7 +47,7 @@ test.describe('Config', () => {
|
||||
|
||||
await expect(page).toHaveURL(/mail-domains\//);
|
||||
|
||||
await expect(page.getByText('Areas of the organization')).toBeVisible();
|
||||
await expect(page.getByText('Domains of the organization')).toBeVisible();
|
||||
});
|
||||
|
||||
// test('it checks that the user abilities display teams', async ({
|
||||
|
||||
@@ -17,7 +17,7 @@ test.describe('When a commune, domain is created on first login via ProConnect',
|
||||
await page.waitForURL('http://localhost:3000/mail-domains/**');
|
||||
await expect(
|
||||
page.getByRole('heading', {
|
||||
name: 'Areas of the organization',
|
||||
name: 'Domains of the organization',
|
||||
exact: true,
|
||||
}),
|
||||
).toBeVisible();
|
||||
|
||||
@@ -38,7 +38,9 @@ test.describe('Add Mail Domains', () => {
|
||||
|
||||
await expect(buttonClose).toBeVisible();
|
||||
|
||||
await page.getByRole('button', { name: /I have already domain/i }).click();
|
||||
await page
|
||||
.getByRole('button', { name: /I already have a domain/i })
|
||||
.click();
|
||||
|
||||
await expect(modal).toBeVisible();
|
||||
await expect(inputName).toBeVisible();
|
||||
@@ -60,7 +62,9 @@ test.describe('Add Mail Domains', () => {
|
||||
await page.goto('/mail-domains/');
|
||||
await page.getByTestId('button-new-domain').click();
|
||||
|
||||
await page.getByRole('button', { name: /I have already domain/i }).click();
|
||||
await page
|
||||
.getByRole('button', { name: /I already have a domain/i })
|
||||
.click();
|
||||
const { inputName, buttonSubmit } = getElements(page);
|
||||
|
||||
await expect(buttonSubmit).toBeDisabled();
|
||||
@@ -79,7 +83,9 @@ test.describe('Add Mail Domains', () => {
|
||||
await page.goto('/mail-domains/');
|
||||
await page.getByTestId('button-new-domain').click();
|
||||
|
||||
await page.getByRole('button', { name: /I have already domain/i }).click();
|
||||
await page
|
||||
.getByRole('button', { name: /I already have a domain/i })
|
||||
.click();
|
||||
|
||||
const { inputName, inputSupportEmail, buttonSubmit, modal } =
|
||||
getElements(page);
|
||||
|
||||
@@ -98,7 +98,7 @@ test.describe('Mail domains', () => {
|
||||
.getByLabel(`Mail Domains button`)
|
||||
.click();
|
||||
await expect(page).toHaveURL(/mail-domains\//);
|
||||
await expect(page.getByText('Areas of the organization')).toBeVisible();
|
||||
await expect(page.getByText('Domains of the organization')).toBeVisible();
|
||||
await expect(page.getByText('No domains exist.')).toBeVisible();
|
||||
});
|
||||
|
||||
@@ -127,7 +127,7 @@ test.describe('Mail domains', () => {
|
||||
.getByLabel(`Mail Domains button`)
|
||||
.click();
|
||||
await expect(page).toHaveURL(/mail-domains\//);
|
||||
await expect(page.getByText('Areas of the organization')).toBeVisible();
|
||||
await expect(page.getByText('Domains of the organization')).toBeVisible();
|
||||
await expect(page.getByText('Manage')).toHaveCount(4);
|
||||
|
||||
await Promise.all(
|
||||
|
||||
Reference in New Issue
Block a user