summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/welcome_mail.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/adapter/welcome_mail.py')
-rw-r--r--service/pixelated/adapter/welcome_mail.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/pixelated/adapter/welcome_mail.py b/service/pixelated/adapter/welcome_mail.py
index a40e44a4..8d3cdd7a 100644
--- a/service/pixelated/adapter/welcome_mail.py
+++ b/service/pixelated/adapter/welcome_mail.py
@@ -18,8 +18,10 @@ from email import message_from_file
from pixelated.adapter.model.mail import InputMail
-def add_welcome_mail(mail_store):
- welcome_mail = pkg_resources.resource_filename('pixelated.assets', 'welcome.mail')
+def add_welcome_mail(mail_store, language='en-US'):
+ welcome_mail = pkg_resources.resource_filename(
+ 'pixelated.assets',
+ 'welcome.mail.%s' % (language))
with open(welcome_mail) as mail_template_file:
mail_template = message_from_file(mail_template_file)