Skip to content

Commit 3b5af22

Browse files
committed
🌐 Enable localization
1 parent c3e8e15 commit 3b5af22

File tree

13 files changed

+762
-58
lines changed

13 files changed

+762
-58
lines changed

src/app/modules/authentication/pages/forgot-password/forgot-password.component.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div>
22
<logo-svg class="h-auto w-36 text-slate-900 dark:text-white"></logo-svg>
3-
<h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Mot de passe oublié?</h2>
4-
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
3+
<h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white" i18n>Mot de passe oublié?</h2>
4+
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400" i18n>
55
Saisissez votre adresse e-mail et nous vous enverrons un lien pour réinitialiser votre mot de passe.
66
</p>
77
</div>
@@ -22,17 +22,17 @@ <h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Mot de pa
2222
</div>
2323

2424
<div class="flex items-center justify-end">
25-
<button-primary type="submit" [loading$]="(loading$)">
25+
<button-primary type="submit" [loading$]="(loading$)" i18n>
2626
Envoyer le lien de réinitialisation
2727
</button-primary>
2828
</div>
2929
</form>
3030

3131
<p class="mt-2 text-right">
3232
<a routerLink="/auth/login" class="inline-flex items-center text-sm font-medium leading-5 text-secondary-500 hover:text-secondary-600 hover:underline">
33-
<svg class="w-5 h-5 mr-1" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
34-
<path d="M6.75 15.75L3 12M3 12L6.75 8.25M3 12H21" />
35-
</svg>
36-
Retournez à la page de connexion
33+
<svg class="w-5 h-5 mr-1" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
34+
<path d="M6.75 15.75L3 12M3 12L6.75 8.25M3 12H21" />
35+
</svg>
36+
<span i18n>Retournez à la page de connexion</span>
3737
</a>
3838
</p>

src/app/modules/authentication/pages/login/login.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div>
22
<logo-svg class="h-auto w-36 text-slate-900 dark:text-white"></logo-svg>
3-
<h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Connectez-vous</h2>
4-
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
3+
<h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white" i18n>Connectez-vous</h2>
4+
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400" i18n>
55
Admin Panel - Administration de la votre plateforme.
66
</p>
77
</div>
@@ -35,11 +35,11 @@ <h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Connectez
3535
<div class="flex items-center justify-between">
3636
<label for="remember-me" class="flex items-center cursor-pointer">
3737
<input id="remember-me" name="remember-me" type="checkbox" class="w-4 h-4 rounded text-primary-600 border-slate-300 focus:ring-primary-500">
38-
<span class="block ml-2 text-sm text-slate-700 dark:text-slate-300"> Se souvenir de moi </span>
38+
<span class="block ml-2 text-sm text-slate-700 dark:text-slate-300" i18n>Se souvenir de moi</span>
3939
</label>
4040

4141
<div class="text-sm">
42-
<a routerLink="/auth/forgot-password" class="font-medium text-primary-600 hover:text-primary-500"> Mot de passe oublié? </a>
42+
<a routerLink="/auth/forgot-password" class="font-medium text-primary-600 hover:text-primary-500" i18n>Mot de passe oublié?</a>
4343
</div>
4444
</div>
4545

@@ -50,7 +50,7 @@ <h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Connectez
5050
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 1C7.51472 1 5.5 3.01472 5.5 5.5V9H5C3.89543 9 3 9.89543 3 11V17C3 18.1046 3.89543 19 5 19H15C16.1046 19 17 18.1046 17 17V11C17 9.89543 16.1046 9 15 9H14.5V5.5C14.5 3.01472 12.4853 1 10 1ZM13 9V5.5C13 3.84315 11.6569 2.5 10 2.5C8.34315 2.5 7 3.84315 7 5.5V9H13Z" />
5151
</svg>
5252
</span>
53-
Se connecter
53+
<span i18n>Se connecter</span>
5454
</button-primary>
5555
</div>
5656
</form>

src/app/modules/authentication/pages/reset-password/reset-password.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div>
22
<logo-svg class="h-auto w-36 text-slate-900 dark:text-white"></logo-svg>
3-
<h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Réinitialisation Mot de passe</h2>
4-
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
3+
<h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white" i18n>Réinitialisation Mot de passe</h2>
4+
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400" i18n>
55
Veuillez renseignez votre nouveau mot de passe pour vous connectez.
66
</p>
77
</div>
@@ -43,7 +43,7 @@ <h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Réinitia
4343
</div>
4444

4545
<div class="flex items-center justify-end">
46-
<button-primary type="submit" class="space-x-3" [loading$]="loading$">
46+
<button-primary type="submit" class="space-x-3" [loading$]="loading$" i18n>
4747
Réinitialiser Mot de passe
4848
</button-primary>
4949
</div>

src/app/modules/dashboard/navigation/admin.menu.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import { Menu } from '@app/shared/interfaces/menu';
33

44
export const adminMenu: Menu[] = [
55
{
6-
group: 'Aperçu',
6+
group: $localize`Aperçu`,
77
items: [
88
{
9-
title: 'Tableau de bord',
9+
title: $localize`Tableau de bord`,
1010
svgPath: [
1111
'M12 16v5m6 0-3.951-3.293c-.73-.607-1.094-.91-1.5-1.027a2 2 0 0 0-1.098 0c-.406.116-.77.42-1.5 1.027L6 21m2-10v1m4-3v3m4-5v5m6-9H2m1 0h18v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 16 17.88 16 16.2 16H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 13.72 3 12.88 3 11.2V3Z',
1212
],
1313
link: '/dashboard',
1414
roles: [ADMIN_ROLE],
1515
},
1616
{
17-
title: 'Statistiques',
17+
title: $localize`Statistiques`,
1818
svgPath: [
1919
'M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z',
2020
'M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z',
@@ -25,18 +25,18 @@ export const adminMenu: Menu[] = [
2525
],
2626
},
2727
{
28-
group: 'Management',
28+
group: $localize`Management`,
2929
items: [
3030
{
31-
title: 'Utilisateurs',
31+
title: $localize`Utilisateurs`,
3232
svgPath: [
3333
'M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z',
3434
],
3535
link: '/users',
3636
roles: [ADMIN_ROLE],
3737
},
3838
{
39-
title: 'Roles & Permissions',
39+
title: $localize`Roles & Permissions`,
4040
svgPath: [
4141
'M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z',
4242
],
@@ -46,10 +46,10 @@ export const adminMenu: Menu[] = [
4646
],
4747
},
4848
{
49-
group: 'Opérations',
49+
group: $localize`Opérations`,
5050
items: [
5151
{
52-
title: 'Paramètres',
52+
title: $localize`Paramètres`,
5353
svgPath: [
5454
'M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z',
5555
'M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z',

src/app/modules/dashboard/pages/dashboard/dashboard.component.html

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
<div class="pt-5 pb-16">
2-
<!-- Welcome panel -->
3-
<section aria-labelledby="profile-overview-title">
4-
</section>
5-
62
<!-- Actions panel -->
73
<section aria-labelledby="quick-links-title">
84
<div class="overflow-hidden divide-y rounded-lg bg-slate-200 divide-slate-200 dark:bg-gray-700 dark:divide-slate-700 sm:grid sm:grid-cols-2 sm:gap-px sm:divide-y-0 lg:grid-cols-3">
9-
<h2 class="sr-only" id="quick-links-title">Lien rapides</h2>
5+
<h2 class="sr-only" id="quick-links-title" i18n>Lien rapides</h2>
106

117
<div class="relative p-6 bg-white dark:bg-gray-800 group focus-within:ring-2 focus-within:ring-inset focus-within:ring-cyan-500">
128
<div>
@@ -21,10 +17,10 @@ <h3 class="text-lg font-medium text-slate-900 dark:text-white">
2117
<a href="https://angular.laravel.cm" class="focus:outline-none">
2218
<!-- Extend touch target to entire panel -->
2319
<span class="absolute inset-0" aria-hidden="true"></span>
24-
Documentation
20+
<span i18n>Documentation</span>
2521
</a>
2622
</h3>
27-
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
23+
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400" i18n>
2824
Une documentation simple pour rapidement utiliser le boilerplate pour votre administration.
2925
</p>
3026
</div>
@@ -48,11 +44,11 @@ <h3 class="text-lg font-medium text-slate-900 dark:text-white">
4844
<a href="https://angular.laravel.cm/benefics" class="focus:outline-none">
4945
<!-- Extend touch target to entire panel -->
5046
<span class="absolute inset-0" aria-hidden="true"></span>
51-
Bénéfices
47+
<span i18n>Bénéfices</span>
5248
</a>
5349
</h3>
54-
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
55-
Un boilerplate <span class="font-medium">Ready To Use</span> pour créer une administration avec Angular 13 et Laravel.
50+
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400" i18n>
51+
Un boilerplate <span class="font-medium text-slate-700 dark:text-white">Ready To Use</span> pour créer une administration avec Angular 13 et Laravel.
5652
</p>
5753
</div>
5854
<span class="absolute pointer-events-none text-slate-300 top-6 right-6 group-hover:text-slate-400" aria-hidden="true">
@@ -75,10 +71,10 @@ <h3 class="text-lg font-medium text-slate-900 dark:text-white">
7571
<a href="https://tailwindcss.com" class="focus:outline-none">
7672
<!-- Extend touch target to entire panel -->
7773
<span class="absolute inset-0" aria-hidden="true"></span>
78-
Technologies
74+
<span i18n>Technologies</span>
7975
</a>
8076
</h3>
81-
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
77+
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400" i18n>
8278
Ce projet tourne sur la version 13 d'Angular et pour le style, Tailwind v3.1 est utilisé.
8379
</p>
8480
</div>
@@ -102,10 +98,10 @@ <h3 class="text-lg font-medium text-slate-900 dark:text-white">
10298
<a href="https://github.com/laravelcm/laravelcm" class="focus:outline-none">
10399
<!-- Extend touch target to entire panel -->
104100
<span class="absolute inset-0" aria-hidden="true"></span>
105-
Sponsoring
101+
<span i18n>Sponsoring</span>
106102
</a>
107103
</h3>
108-
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
104+
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400" i18n>
109105
Pour soutenir le developpement de ce projet, vous pouvez faire un don pour encorager la Team.
110106
</p>
111107
</div>
@@ -132,7 +128,7 @@ <h3 class="text-lg font-medium text-slate-900 dark:text-white">
132128
NgRx - RxJS
133129
</a>
134130
</h3>
135-
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
131+
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400" i18n>
136132
Toute l'architecture NgRx et RxJS est inspiré de la documentation officielle de NgRx.
137133
</p>
138134
</div>
@@ -156,16 +152,16 @@ <h3 class="text-lg font-medium text-slate-900 dark:text-white">
156152
<a href="https://dyma.fr/r/6304c19b44243265c770cbc8" class="focus:outline-none">
157153
<!-- Extend touch target to entire panel -->
158154
<span class="absolute inset-0" aria-hidden="true"></span>
159-
Formation
155+
<span i18n>Formation</span>
160156
</a>
161157
</h3>
162-
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
158+
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400" i18n>
163159
Obtenez une réduction de 10€ sur la formation Angular en vous inscrivant sur Dyma.fr.
164160
</p>
165161
</div>
166162
<span class="absolute pointer-events-none text-slate-300 top-6 right-6 group-hover:text-slate-400" aria-hidden="true">
167163
<svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
168-
<path d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z"></path>
164+
<path d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z" />
169165
</svg>
170166
</span>
171167
</div>

src/app/shared/themes/components/header/header.component.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<!-- SearchBar Component -->
1818
<div class="hidden w-full max-w-xs ml-12 md:block">
19-
<label for="search" class="sr-only">Recherche rapide</label>
19+
<label for="search" class="sr-only" i18n>Recherche rapide</label>
2020
<div class="relative flex items-center">
2121
<input type="text" name="search" id="search" placeholder="Rechercher" class="block w-full pr-12 bg-white border-gray-300 rounded-md shadow-sm focus:border-primary-500 focus:ring-primary-500 sm:text-sm dark:bg-gray-900 dark:border-gray-700 dark:text-white">
2222
<div class="absolute inset-y-0 right-0 flex py-1.5 pr-1.5">
@@ -44,7 +44,7 @@
4444
<path
4545
d="M2.5 12h3.382c.685 0 1.312.387 1.618 1 .306.613.933 1 1.618 1h5.764c.685 0 1.312-.387 1.618-1 .306-.613.933-1 1.618-1H21.5M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z" />
4646
</svg>
47-
Vous rencontrez un problème ?
47+
<span i18n>Vous rencontrez un problème ?</span>
4848
</a>
4949
<div class="flex items-center pl-4">
5050
<!-- SearchBar Button -->
@@ -83,7 +83,7 @@
8383
</button>
8484
<!-- Theme Switcher -->
8585
<div class="relative ml-3">
86-
<label class="sr-only" id="label-system">Theme</label>
86+
<label class="sr-only" id="label-system" i18n>Theme</label>
8787
<button (click)="showDialog =! showDialog" type="button" class="flex items-center justify-center w-8 h-8 rounded-full shadow-md shadow-black/5 ring-1 ring-black/5 dark:bg-slate-700 dark:ring-inset dark:ring-white/5">
8888
<span class="sr-only">{{ currentTheme }}</span>
8989
<svg class="hidden h-4 w-4 fill-green-400 [[data-theme=light]_&]:block" aria-hidden="true" viewBox="0 0 16 16">
@@ -160,7 +160,7 @@
160160
aria-expanded="false"
161161
aria-haspopup="true"
162162
(click)="toggleMobileMenu()">
163-
<span class="sr-only">Ouvrir le menu utilisateur</span>
163+
<span class="sr-only" i18n>Ouvrir le menu utilisateur</span>
164164
<ngx-skeleton-loader
165165
*ngIf="(user$ | async) === null"
166166
appearance="circle"
@@ -175,14 +175,14 @@
175175
</button>
176176
<div
177177
[@openClose]="openCloseTrigger"
178-
class="absolute right-0 z-10 w-56 mt-2 origin-top-right bg-white divide-y rounded-md shadow-lg divide-slate-100 ring-1 ring-black dark:bg-gray-800 dark:divide-slate-700 dark:ring-gray-800 ring-opacity-5 dark:ring-opacity-70 focus:outline-none"
178+
class="absolute right-0 z-10 mt-2 origin-top-right bg-white divide-y rounded-md shadow-lg w-60 divide-slate-100 ring-1 ring-black dark:bg-gray-800 dark:divide-slate-700 dark:ring-gray-800 ring-opacity-5 focus:outline-none"
179179
role="menu"
180180
aria-orientation="vertical"
181181
aria-labelledby="menu-button"
182182
tabindex="-1"
183183
[ngClass]="mobileMenuOpen ? 'block' : 'hidden'">
184184
<div class="px-4 py-3" role="none">
185-
<p class="text-sm text-black dark:text-slate-500" role="none">Connecté avec</p>
185+
<p class="text-sm text-black dark:text-slate-500" role="none" i18n>Connecté avec</p>
186186
<p
187187
class="text-sm font-medium truncate text-slate-900 dark:text-white"
188188
role="none"
@@ -191,18 +191,18 @@
191191
</p>
192192
</div>
193193
<div class="py-1" role="none">
194-
<a href="#" class="block px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-300 dark:hover:text-white dark:hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-0">
194+
<a href="#" class="block px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-300 dark:hover:text-white dark:hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-0" i18n>
195195
Mon compte
196196
</a>
197-
<a href="#" class="block px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-300 dark:hover:text-white dark:hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-1">
197+
<a href="#" class="block px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-300 dark:hover:text-white dark:hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-1" i18n>
198198
Support
199199
</a>
200-
<a href="#" class="block px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-300 dark:hover:text-white dark:hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-2">
200+
<a href="#" class="block px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-300 dark:hover:text-white dark:hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-2" i18n>
201201
Guide d'utilisation
202202
</a>
203203
</div>
204204
<div class="flex items-center justify-between py-1" role="none">
205-
<button type="button" (click)="logout()" class="block w-full px-4 py-2 text-sm text-left text-slate-700 dark:text-slate-300" role="menuitem" tabindex="-1" id="menu-item-3">
205+
<button type="button" (click)="logout()" class="block w-full px-4 py-2 text-sm text-left text-slate-700 dark:text-slate-300" role="menuitem" tabindex="-1" id="menu-item-3" i18n>
206206
Se déconnecter
207207
</button>
208208
<span *ngIf="loading$ | async" class="flex items-center px-3">

src/app/shared/themes/components/header/header.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export class HeaderComponent implements OnInit {
4545
showDialog: boolean = false;
4646

4747
themes = [
48-
{ name: 'Light', value: 'light' },
49-
{ name: 'Dark', value: 'dark' },
50-
{ name: 'System', value: 'system' },
48+
{ name: $localize`Clair`, value: 'light' },
49+
{ name: $localize`Sombre`, value: 'dark' },
50+
{ name: $localize`Système`, value: 'system' },
5151
];
5252

5353
@ViewChild('menuDropdown') menuDropdown!: ElementRef;

0 commit comments

Comments
 (0)