mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 02:46:52 +08:00
Feat/portuguese support (#2075)
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user