Skip to content

Commit

Permalink
feat: greeting message in header component
Browse files Browse the repository at this point in the history
  • Loading branch information
jvondermarck committed Apr 14, 2024
1 parent 3593e0e commit 80dc7c4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/core/layout/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

@if(isUserAuthenticated$ | async)
{
<p class="text-green-700 font-bold text-xl">Hello {{ (user$ |async)?.firstName }} !</p>
<p class="text-green-700 font-bold text-xl">{{ 'account.title-greetings' | transloco: { user: (user$ | async)!.firstName } }}</p>

<div class="h-0.5 bg-gray-300 w-full"></div>

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
},
"account": {
"title": "My account",
"title-greetings": "Hello, {{user}} !",
"title-greetings": "Hello, {{user}} !👋🏼",
"my-orders": "My orders",
"my-details": "My details",
"my-cards": "My cards",
Expand Down Expand Up @@ -112,7 +112,7 @@
},
"basket": {
"title": "Basket",
"empty-cart": "Your cart is empty.",
"empty-cart": "Your cart is empty 😭",
"continue-shopping": "Continue shopping",
"connect-to-see-cart": "Connect to see your cart.",
"login": "Login",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
},
"account": {
"title": "Mon compte",
"title-greetings": "Bonjour, {{user}} !",
"title-greetings": "Bonjour, {{user}} !👋🏼",
"my-orders": "Mes commandes",
"my-details": "Mes détails",
"my-cards": "Mes cartes",
Expand Down Expand Up @@ -112,7 +112,7 @@
},
"basket": {
"title": "Panier",
"empty-cart": "Votre panier est vide.",
"empty-cart": "Votre panier est vide 😭",
"continue-shopping": "Continuer vos achats",
"connect-to-see-cart": "Connectez-vous pour voir votre panier.",
"login": "Se connecter",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/assets/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
},
"account": {
"title": "Il mio account",
"title-greetings": "Ciao, {{user}} !",
"title-greetings": "Ciao, {{user}} !👋🏼",
"my-orders": "I miei ordini",
"my-details": "I miei dettagli",
"my-cards": "Le mie carte",
Expand Down Expand Up @@ -112,7 +112,7 @@
},
"basket": {
"title": "Guardare",
"empty-cart": "Il tuo carrello è vuoto.",
"empty-cart": "Il tuo carrello è vuoto 😭",
"continue-shopping": "Continua a fare acquisti",
"connect-to-see-cart": "Connettiti per vedere il tuo carrello.",
"login": "Login",
Expand Down

0 comments on commit 80dc7c4

Please sign in to comment.