Skip to content

Commit 0b7dfd1

Browse files
committed
Fix determining locale for invite email
1 parent 4780d0c commit 0b7dfd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controllers/users_controller.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ def sendmail(self, id):
202202
os.path.dirname(url_for('home', _external=True).rstrip("/")) + "/"
203203
)
204204

205+
locale = os.environ.get('DEFAULT_LOCALE', 'en')
205206
try:
206207
body = render_template(
207-
'%s/invite_email_body.%s.txt' % (self.templates_dir, i18n.get('locale')),
208+
'%s/invite_email_body.%s.txt' % (self.templates_dir, locale),
208209
user=user, password=password, app_name=app_name
209210
)
210211
except:

0 commit comments

Comments
 (0)