🌐(app-desk) translate Desk in french

Translate app Desk in french thanks to crowdin.
This commit is contained in:
Anthony LC
2024-02-05 11:36:03 +01:00
committed by Anthony LC
parent 8043d12315
commit 32e42e126d
3 changed files with 29 additions and 21 deletions

View File

@@ -1,14 +1,21 @@
{ {
"en": { "en": { "translation": {} },
"translation": {
"Hello Desk !": "Hello Desk !",
"Freedom Equality Fraternity Logo": "Freedom Equality Fraternity Logo"
}
},
"fr": { "fr": {
"translation": { "translation": {
"Hello Desk !": "Bienvenue sur Desk !", "Marianne Logo": "Logo Marianne",
"Freedom Equality Fraternity Logo": "Logo Liberté Egalité Fraternité" "Freedom Equality Fraternity Logo": "Logo Liberté Égalité Fraternité",
"Desk Logo": "Logo Desk",
"Desk": "Desk",
"Access to FAQ": "Accès à la FAQ",
"FAQ Icon": "Icône FAQ",
"FAQ": "FAQ",
"Access to the cells menu": "Accès au menu cellules",
"Cells icon": "Icône Cellules",
"Language Icon": "Icône de langue",
"Language": "Langue",
"Hello Desk !": "Bonjour Desk !",
"Team name": "Nom de léquipe",
"Create Team": "Créer une équipe"
} }
} }
} }

View File

@@ -8,17 +8,18 @@ test.beforeEach(async ({ page }) => {
}); });
test.describe('Language', () => { test.describe('Language', () => {
test('checks translation library works', async ({ page }) => { test('checks the language picker', async ({ page }) => {
await expect( await expect(
page.locator('h1').first().getByText('Bienvenue sur Desk !'), page.locator('h1').first().getByText('Hello Desk !'),
).toBeVisible();
const header = page.locator('header').first();
await header.getByRole('combobox').getByText('EN').click();
await header.getByRole('option', { name: 'FR' }).click();
await expect(header.getByRole('combobox').getByText('FR')).toBeVisible();
await expect(
page.locator('h1').first().getByText('Bonjour Desk !'),
).toBeVisible(); ).toBeVisible();
}); });
test('checks the language picker', async ({ page }) => {
const header = page.locator('header').first();
await header.getByRole('combobox').getByText('FR').click();
await header.getByRole('option', { name: 'Language Icon EN' }).click();
await expect(header.getByRole('combobox').getByText('EN')).toBeVisible();
});
}); });

View File

@@ -44,17 +44,17 @@ export default defineConfig({
projects: [ projects: [
{ {
name: 'chromium', name: 'chromium',
use: { ...devices['Desktop Chrome'] }, use: { ...devices['Desktop Chrome'], locale: 'en-US' },
}, },
{ {
name: 'firefox', name: 'firefox',
use: { ...devices['Desktop Firefox'] }, use: { ...devices['Desktop Firefox'], locale: 'en-US' },
}, },
{ {
name: 'webkit', name: 'webkit',
use: { ...devices['Desktop Safari'] }, use: { ...devices['Desktop Safari'], locale: 'en-US' },
}, },
], ],
}); });