Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate email, change title #24

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>