Skip to content

Commit

Permalink
Fix web ui
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneha-s committed Mar 13, 2024
1 parent 5988197 commit 720bb6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/data/core/utils/date_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class DateFormatter {
if (dateTime.dateOnly.isAtSameMomentAs(today)) {
return _localization.present_birthday_text(name);
} else {
return "${_localization.upcoming_birthday_text(name)} ${getDateRepresentation(dateTime)}🎉";
return "${_localization.upcoming_birthday_text(name)} ${getDateRepresentation(dateTime).toLowerCase()}!🎂🎁";
}
}

Expand All @@ -103,7 +103,7 @@ class DateFormatter {
if (dateTime.dateOnly.isAtSameMomentAs(today)) {
return _localization.present_anniversary_text(name, yearDifference);
} else {
return "${_localization.upcoming_anniversary_text(name, yearDifference)} ${getDateRepresentation(dateTime)}🎉";
return "${_localization.upcoming_anniversary_text(name, yearDifference)} ${getDateRepresentation(dateTime)}!🎉";
}
}

Expand Down
8 changes: 4 additions & 4 deletions lib/data/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,15 @@
"birthdays_tag":"Birthdays",
"work_anniversaries_tag":"Work Anniversary",
"no_event_text":"No festivities on the calendar this week",
"upcoming_birthday_text":"{name}'s birthday is coming up on ",
"upcoming_birthday_text":"{name}'s birthday is coming up on",
"@upcoming_birthday_text":{
"placeholders":{
"name":{
"type":"String"
}
}
},
"present_birthday_text":"Today is {name}'s birthday 🥳🥳! Let's make it sparkle with cheerful wishes! ",
"present_birthday_text":"Today is {name}'s birthday 🥳🥳! Let's make it sparkle with cheerful wishes!",
"@present_birthday_text":{
"placeholders":{
"name":{
Expand All @@ -276,7 +276,7 @@
}
},

"upcoming_anniversary_text":"{name} will have successfully completed {years} years with us on ",
"upcoming_anniversary_text":"{name} will have successfully completed {years} years with us on",
"@upcoming_anniversary_text":{
"placeholders":{
"name":{
Expand All @@ -287,7 +287,7 @@
}
}
},
"present_anniversary_text":"Congratulations on {years} with us {name} 💐💐! Keep up the good work! ",
"present_anniversary_text":"Congratulations on {years} with us {name} 💐💐! Keep up the good work!",
"@present_anniversary_text":{
"placeholders":{
"name":{
Expand Down

0 comments on commit 720bb6f

Please sign in to comment.