Skip to content

Commit

Permalink
Merge pull request #24 from Best-offer-finder/translate-email
Browse files Browse the repository at this point in the history
Translate email, change title
  • Loading branch information
Rivixer authored Jun 13, 2024
2 parents d037f1b + 4d9e0b5 commit 92af67d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ private void sendNotification(Scheme scheme, Integer count) {
data.put("schemeName", scheme.getName());
data.put("schemeCount", count.toString());

emailService.sendEmail(scheme.getUser().getEmail(), String.format("[BestCarFinder]-[%s] Found %d new cars!", scheme.getName(), count), data);
emailService.sendEmail(scheme.getUser().getEmail(), String.format("[BestOfferFinder]-[%s] Nowe auta: %d", scheme.getName(), count), data);

} catch (MessagingException | IOException e) {
LOGGER.error(e.getMessage());
Expand Down
14 changes: 7 additions & 7 deletions src/main/resources/templates/emailTemplate.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<html lang="pl"></html>
<head>
<meta charset="UTF-8">
<title>New cars found</title>
<title>Znaleziono nowe auta</title>

<style>

Expand Down Expand Up @@ -65,13 +65,13 @@
</head>
<body>
<div class="container">
<h1>Welcome <a class="no-style-email">{{email}}</a>!</h1>
<p>We would like to inform you, that your scheme has found new available offers:</p>
<h1>Witaj <a class="no-style-email">{{email}}</a>!</h1>
<p>Chcielibyśmy Cię poinformować, że Twój schemat znalazł nowe dostępne oferty:</p>
<ul>
<li><b>Scheme name:</b> {{schemeName}}</li>
<li><b>Found cars:</b> {{schemeCount}}</li>
<li><b>Nazwa schematu:</b> {{schemeName}}</li>
<li><b>Liczba aut:</b> {{schemeCount}}</li>
</ul>
<a class="button" href="{{frontendUrl}}">Check out new offers</a>
<a class="button" href="{{frontendUrl}}">Sprawdź nowe oferty</a>
</div>
</body>
</html>

0 comments on commit 92af67d

Please sign in to comment.