perf: 优化 ops 任务,支持 i18n

- 内置任务名称支持了 i18n,数据库存英文,返回是翻译一下
- 任务执行中,添加 language 上下文
This commit is contained in:
ibuler
2022-01-13 14:18:32 +08:00
committed by Jiangjie.Bai
parent 43c4c78378
commit 145c7952c9
14 changed files with 127 additions and 88 deletions

View File

@@ -1,6 +1,6 @@
from django.core.cache import cache
from django.shortcuts import reverse
from django.shortcuts import redirect
from django.shortcuts import reverse, redirect
from django.utils.translation import gettext_noop
from .random import random_string