Feat/portuguese support (#2075)
This commit is contained in:
parent
21ade71bad
commit
c17baef172
78 changed files with 2849 additions and 376 deletions
|
|
@ -5,7 +5,7 @@ import click
|
|||
from celery import shared_task
|
||||
from extensions.ext_mail import mail
|
||||
from flask import current_app, render_template
|
||||
|
||||
from constants.languages import languages
|
||||
|
||||
@shared_task(queue='mail')
|
||||
def send_invite_member_mail_task(language: str, to: str, token: str, inviter_name: str, workspace_name: str):
|
||||
|
|
@ -26,6 +26,7 @@ def send_invite_member_mail_task(language: str, to: str, token: str, inviter_nam
|
|||
fg='green'))
|
||||
start_at = time.perf_counter()
|
||||
|
||||
# TODO send invite member mail using different languages
|
||||
try:
|
||||
url = f'{current_app.config.get("CONSOLE_WEB_URL")}/activate?token={token}'
|
||||
if language == 'zh-Hans':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue